-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1.2 KB
/
Dockerfile
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
40
41
42
43
44
ARG repository
FROM nvidia/cuda:8.0-cudnn6-runtime-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libpng12-dev \
libzmq3-dev \
pkg-config \
python \
python-dev \
rsync \
software-properties-common \
unzip \
git \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository ppa:jonathonf/python-3.6 && \
apt-get update && \
apt-get install -y --no-install-recommends python3.6 && \
apt-get install -y python3.6-dev && \
apt-get install -y python3-tk
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6
RUN pip install tensorflow-gpu==1.4.0
RUN pip install Cython
RUN pip install tqdm pandas matplotlib fasttext keras sklearn
RUN pip install tensorflow-gpu==1.4.0 && \
pip install Cython && \
pip install tqdm pandas matplotlib fasttext keras sklearn
RUN mkdir /nmt && mkdir /nmt/ext_libs
WORKDIR /nmt
RUN git clone https://github.com/moses-smt/mosesdecoder.git /nmt/ext_libs/mosesdecoder && \
git clone https://github.com/rsennrich/subword-nmt.git /nmt/ext_libs/subword-nmt
COPY . /nmt