Last active
April 29, 2021 15:50
-
-
Save MridulS/cf52b908aef99e20bfa1e3fccd197842 to your computer and use it in GitHub Desktop.
Dockerfile
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 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