-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
52 lines (41 loc) · 1.44 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
45
46
47
48
49
50
51
FROM nvidia/cuda:10.1-base-ubuntu16.04
LABEL maintainer="HighCWu <[email protected]>"
# This Dockerfile is forked from Tensorflow Dockerfile
# Pick up some PaddlePaddle gpu dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libhdf5-serial-dev \
libpng12-dev \
libzmq3-dev \
pkg-config \
python \
python-dev \
rsync \
software-properties-common \
unzip \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install miniconda
RUN apt-get update && apt-get install -y --no-install-recommends \
wget && \
MINICONDA="Miniconda3-py37_4.9.2-Linux-x86_64.sh" && \
wget --quiet https://repo.continuum.io/miniconda/$MINICONDA && \
bash $MINICONDA -b -p /miniconda && \
rm -f $MINICONDA
ENV PATH /miniconda/bin:$PATH
# Install PaddlePaddle
RUN conda update -n base conda && \
conda install paddlepaddle-gpu==2.0.2 cudatoolkit=10.1 -c paddle
# Install PerceptualSimilarity dependencies
RUN conda install numpy scipy jupyter matplotlib && \
conda install -c conda-forge scikit-image && \
apt-get install -y python-qt4 && \
pip install opencv-python
# For CUDA profiling, TensorFlow requires CUPTI. Maybe PaddlePaddle needs this too.
ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
# IPython
EXPOSE 8888
WORKDIR "/notebooks"