forked from binder-examples/minimal-dockerfile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
FROM python:3.7-slim | ||
# install the notebook package | ||
RUN pip install --no-cache --upgrade pip && \ | ||
pip install --no-cache notebook | ||
|
||
# create user with a home directory | ||
ARG NB_USER | ||
ARG NB_UID | ||
ENV USER ${NB_USER} | ||
ENV HOME /home/${NB_USER} | ||
|
||
RUN adduser --disabled-password \ | ||
--gecos "Default user" \ | ||
--uid ${NB_UID} \ | ||
${NB_USER} | ||
WORKDIR ${HOME} | ||
RUN pip install --no-cache notebook | ||
ENV HOME=/tmp |