Created
May 12, 2017 05:31
-
-
Save iurev/0190b299b4857fe8a62aa7eba563f0fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
# ensure local python is preferred over distribution python | |
ENV PATH /usr/local/bin:$PATH | |
# http://bugs.python.org/issue19846 | |
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. | |
ENV LANG C.UTF-8 | |
RUN apt-get -yqq update | |
RUN apt-get -yqq install wget bzip2 | |
RUN wget http://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O ~/miniconda.sh | |
RUN bash ~/miniconda.sh -b -p ~/miniconda | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
RUN echo 'source /root/miniconda/bin/activate /root/miniconda/' >> $HOME/.bashrc | |
RUN source /root/miniconda/bin/activate /root/miniconda/ && conda install numpy | |
RUN source /root/miniconda/bin/activate /root/miniconda/ && conda install tensorflow | |
RUN source /root/miniconda/bin/activate /root/miniconda/ && conda install jupyter | |
RUN source /root/miniconda/bin/activate /root/miniconda/ && pip install gym | |
RUN source /root/miniconda/bin/activate /root/miniconda/ && conda install matplotlib | |
RUN source /root/miniconda/bin/activate /root/miniconda/ && conda install scikit-learn | |
RUN source /root/miniconda/bin/activate /root/miniconda/ && conda install pandas | |
RUN mkdir /root/.jupyter | |
COPY ./jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py | |
EXPOSE 8888 | |
WORKDIR /home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment