-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 869 Bytes
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 869 Bytes
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
FROM terminus7/gpu-py3
MAINTAINER Luis Mesas <luis.mesas@intelygenz.com>
ARG THEANO_VERSION=rel-0.9.0
# new system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
g++ \
libblas-dev \
python-tk \
git && \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# new python dependencies
RUN pip --no-cache-dir install \
matplotlib \
numpy \
pandas \
pillow \
scikit-image \
scipy \
nose
# Theano
RUN pip install --no-deps git+git://github.com/Theano/Theano.git@${THEANO_VERSION} && \
\
echo "[global]\ndevice=cuda\nfloatX=float32\noptimizer_including=cudnn\nmode=FAST_RUN \
\n[lib]\ncnmem=0.95\n \
\n[nvcc]\nfastmath=True\n \
\n[DebugMode]\ncheck_finite=1" \
> /root/.theanorc
WORKDIR "/root"
CMD ["/bin/bash"]