Skip to content

Instantly share code, notes, and snippets.

@MridulS
Last active April 29, 2021 15:50
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 MridulS/cf52b908aef99e20bfa1e3fccd197842 to your computer and use it in GitHub Desktop.
Save MridulS/cf52b908aef99e20bfa1e3fccd197842 to your computer and use it in GitHub Desktop.
Dockerfile
FROM python:3.7-slim
# install the notebook package
RUN pip install --no-cache --upgrade pip && \
pip install --no-cache jupyterhub==1.3.0 notebook
# create user with a home directory
ARG NB_UID
ENV USER lol
ENV HOME /home/lol
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
lol
WORKDIR ${HOME}
USER ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment