-
Notifications
You must be signed in to change notification settings - Fork 269
/
Dockerfile.cpu
40 lines (31 loc) · 798 Bytes
/
Dockerfile.cpu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:16.04
MAINTAINER Tom Kocmi <[email protected]>
RUN apt-get update && apt-get install -y \
cmake \
git \
python \
python3 \
vim \
nano \
libopenblas-dev \
python3-dev \
python3-pip \
xml-twig-tools
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade setuptools
RUN pip3 install tensorflow==1.15
RUN mkdir -p /path/to
WORKDIR /path/to/
# Install mosesdecoder
RUN git clone https:/moses-smt/mosesdecoder
# Install subwords
RUN git clone https:/rsennrich/subword-nmt
# Install nematus
COPY . /path/to/nematus
WORKDIR /path/to/nematus
RUN python3 setup.py install
WORKDIR /
# playground will contain user defined scripts, it should be run as:
# docker run -v `pwd`:/playground -it nematus-docker
RUN mkdir playground
WORKDIR /playground