Last active
March 11, 2021 15:34
-
-
Save juanbelieni/f322e54a3779bcc0814215efea67171a to your computer and use it in GitHub Desktop.
Docker configuration for Anaconda and Jupyter Notebook
This file contains hidden or 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
version: "3.6" | |
services: | |
anaconda: | |
build: | |
context: . | |
volumes: | |
- ./notebooks:/opt/notebooks | |
ports: | |
- 8888:8888 | |
container_name: anaconda | |
tty: true | |
This file contains hidden or 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 continuumio/anaconda3:latest | |
RUN conda install jupyter -y --quiet | |
RUN mkdir /opt/notebooks | |
CMD ["jupyter", "notebook", "--notebook-dir=/opt/notebooks", "--ip='*'", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment