Skip to content

Instantly share code, notes, and snippets.

@cj2001
Created May 14, 2021 17:54
Show Gist options
  • Save cj2001/4efe5ab492ddbf263718cb9eabc8ebd4 to your computer and use it in GitHub Desktop.
Save cj2001/4efe5ab492ddbf263718cb9eabc8ebd4 to your computer and use it in GitHub Desktop.
Main data science Dockerfile
FROM jupyter/datascience-notebook
COPY requirements.txt ./
RUN pip install -U pip
RUN pip install --no-cache-dir -r requirements.txt
ENV JUPYTER_ENABLE_LAB=yes
COPY --chown=${NB_UID}:${NB_GID} . /home/jovyan/work
WORKDIR /home/jovyan/work
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--notebook-dir=/home/jovyan/work", "--allow-root"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment