handson-ml/Dockerfile

40 lines
1.2 KiB
Docker
Raw Normal View History

FROM andrewosh/binder-base
USER root
RUN apt-get update -y &&\
apt-get install --fix-missing -y \
python-numpy\
python-dev\
cmake\
zlib1g-dev\
libjpeg-dev\
xvfb\
libav-tools\
xorg-dev\
python-opengl\
libboost-all-dev\
libsdl2-dev\
swig &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*tmp
USER main
# Python 2
RUN conda install -c jjhelmus tensorflow=0.10.0
RUN conda install -c conda-forge jupyter_contrib_nbextensions
2016-10-12 21:52:58 +02:00
RUN conda install -c https://conda.anaconda.org/kne pybox2d
RUN jupyter contrib nbextension install --user
RUN jupyter nbextension enable toc2/main
RUN pip install --upgrade gym
RUN pip install --upgrade 'gym[atari]'
2016-10-12 21:52:58 +02:00
RUN pip install --upgrade 'gym[box2d]'
# Python 3
RUN conda install -n python3 -c jjhelmus tensorflow=0.10.0
2016-10-12 21:52:58 +02:00
RUN conda install -n python3 -c https://conda.anaconda.org/kne pybox2d
RUN /bin/bash -c "source activate python3 && pip install --upgrade gym"
RUN /bin/bash -c "source activate python3 && pip install --upgrade 'gym[atari]'"
2016-10-12 21:52:58 +02:00
RUN /bin/bash -c "source activate python3 && pip install --upgrade 'gym[box2d]'"