-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-adv-cpu
23 lines (20 loc) · 1.09 KB
/
Dockerfile-adv-cpu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM latukha/tensorflow-haskell-ihaskell:latest-cpu
MAINTAINER Anton Latukha <[email protected]>
COPY ./deploy-keys/ /root/.ssh
RUN chmod -R 0400 /root/.ssh
RUN apt install ssh -y --no-install-recommends
RUN ssh-keyscan 'github.com' >> /root/.ssh/known_hosts
RUN ln /root/.ssh/syntaxnet-id_rsa /root/.ssh/id_rsa
RUN git clone --depth 1 [email protected]:mgajda/syntaxnet-haskell.git
RUN rm /root/.ssh/syntaxnet-id_rsa /root/.ssh/id_rsa
RUN ln /root/.ssh/corenlp-id_rsa /root/.ssh/id_rsa
RUN git clone --depth 1 [email protected]:mgajda/corenlp-haskell.git
RUN rm /root/.ssh/corenlp-id_rsa /root/.ssh/id_rsa
RUN ln /root/.ssh/haskell-nlp-id_rsa /root/.ssh/id_rsa
RUN git clone --depth 1 [email protected]:mgajda/haskell-conll.git
RUN rm /root/.ssh/haskell-nlp-id_rsa /root/.ssh/id_rsa
# At first install haskell-conll (it is also a dependency)
RUN cd /git/haskell-conll && stack install --ghc-options=-O2
RUN cd /git/corenlp-haskell && stack install --ghc-options=-O2
RUN cd /git/syntaxnet-haskell && stack install --ghc-options=-O2
RUN rm -rf /git/haskell-conll /git/corenlp-haskell /git/syntaxnet-haskell