Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created October 28, 2019 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/711c8ebaacda9062d7bdf6b760be174f to your computer and use it in GitHub Desktop.
Save bessarabov/711c8ebaacda9062d7bdf6b760be174f to your computer and use it in GitHub Desktop.
Dockerfile for jupyter
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