Skip to content

Commit

Permalink
make Dockerfile truly minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Sep 20, 2018
1 parent 50f7496 commit 9032e0c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Dockerfile
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

0 comments on commit 9032e0c

Please sign in to comment.