-
Notifications
You must be signed in to change notification settings - Fork 269
/
Dockerfile.gpu
48 lines (38 loc) · 1010 Bytes
/
Dockerfile.gpu
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
45
46
47
48
FROM nvidia/cuda:10.0-cudnn7-devel
MAINTAINER Tom Kocmi <kocmi@ufal.mff.cuni.cz>
# Install git, wget, python-dev, pip and other dependencies
RUN apt-get update && apt-get install -y \
git \
wget \
cmake \
vim \
nano \
python3 \
libopenblas-dev \
python3-dev \
python3-pip \
python3-nose \
python3-numpy \
python3-scipy \
python3-pygraphviz \
xml-twig-tools
RUN pip3 install --upgrade pip
RUN pip3 install -U setuptools
RUN pip3 install tensorflow==1.15
# Set CUDA_ROOT
ENV CUDA_ROOT /usr/local/cuda/bin
RUN mkdir -p /path/to
WORKDIR /path/to/
# Install mosesdecoder
RUN git clone https://github.com/moses-smt/mosesdecoder
# Install subwords
RUN git clone https://github.com/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:
# nvidia-docker run -v `pwd`:/playground -it nematus-docker
RUN mkdir playground
WORKDIR /playground