-
Notifications
You must be signed in to change notification settings - Fork 42
/
Dockerfile
47 lines (43 loc) · 1.61 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
FROM tensorflow/tensorflow:latest-py3
ENV BUILD_PACKAGES="\
git \
wget \
curl" \
PIP_PACKAGES="\
numpy \
pandas \
seaborn \
matplotlib \
pyvirtualdisplay \
piglet \
gym[atari] \
git+https://github.com/eleurent/highway-env \
tqdm \
opencv-python \
https://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl \
https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl" \
JUPYTER_CONFIG_DIR=/home/.ipython/profile_default/startup \
LANG=C.UTF-8
RUN set -ex; \
apt-get update -y; \
apt-get upgrade -y; \
apt-get install -y --no-install-recommends ${BUILD_PACKAGES}; \
apt-get update -y; \
apt-get install -y libgtk2.0-dev xvfb python-opengl ffmpeg; \
pip install -U -V pip; \
pip install -U -v setuptools wheel; \
pip install -U -v ${PIP_PACKAGES}; \
apt-get remove --purge --auto-remove -y ${BUILD_PACKAGES}; \
apt-get clean; \
apt-get autoclean; \
apt-get autoremove; \
rm -rf /tmp/* /var/tmp/*; \
rm -rf /var/lib/apt/lists/*; \
pip install jupyter && jupyter nbextension enable --py widgetsnbextension; \
mkdir -p ${JUPYTER_CONFIG_DIR}; \
echo "import warnings" | tee ${JUPYTER_CONFIG_DIR}/config.py; \
echo "warnings.filterwarnings('ignore')" | tee -a ${JUPYTER_CONFIG_DIR}/config.py; \
echo "c.NotebookApp.token = u''" | tee -a ${JUPYTER_CONFIG_DIR}/config.py
EXPOSE 8888
CMD [ "jupyter", "notebook", "--port=8888", "--no-browser", \
"--allow-root", "--ip=0.0.0.0", "--NotebookApp.token=" ]