Skip to content

Instantly share code, notes, and snippets.

@juanbelieni
Last active March 11, 2021 15:34
Show Gist options
  • Save juanbelieni/f322e54a3779bcc0814215efea67171a to your computer and use it in GitHub Desktop.
Save juanbelieni/f322e54a3779bcc0814215efea67171a to your computer and use it in GitHub Desktop.
Docker configuration for Anaconda and Jupyter Notebook
version: "3.6"
services:
anaconda:
build:
context: .
volumes:
- ./notebooks:/opt/notebooks
ports:
- 8888:8888
container_name: anaconda
tty: true
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