Created
October 28, 2019 10:53
-
-
Save bessarabov/711c8ebaacda9062d7bdf6b760be174f to your computer and use it in GitHub Desktop.
Dockerfile for jupyter
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 python:3.7.2 | |
RUN pip install jupyter | |
RUN pip install pandas | |
RUN pip install matplotlib | |
RUN pip install seaborn | |
EXPOSE 8888 | |
RUN mkdir /data_jupyter/ | |
WORKDIR /data_jupyter/ | |
RUN jupyter notebook --generate-config | |
RUN echo "c.NotebookApp.port = 80" >> /root/.jupyter/jupyter_notebook_config.py | |
RUN echo "c.NotebookApp.base_url = '/jupyter/'" >> /root/.jupyter/jupyter_notebook_config.py | |
RUN echo "c.NotebookApp.allow_origin = '*'" >> /root/.jupyter/jupyter_notebook_config.py | |
RUN echo "c.NotebookApp.trust_xheaders = True" >> /root/.jupyter/jupyter_notebook_config.py | |
CMD jupyter notebook --ip=0.0.0.0 --no-browser --allow-root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment