Skip to content

Commit 4da9fb8

Browse files
committed
singleuser: Allow user installable packages
This should eventually just be s2i, but until then...
1 parent ff65d74 commit 4da9fb8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

images/singleuser-sample/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ RUN apt-get update && \
44
apt-get install --yes --no-install-recommends python3 python3-venv && \
55
apt-get purge && apt-get clean
66

7+
RUN adduser --disabled-password --gecos "Default Jupyter user" jovyan
8+
9+
RUN mkdir -p /srv/venv && chown -R jovyan:jovyan /srv/venv
10+
11+
USER jovyan
12+
713
RUN python3 -m venv /srv/venv
814
RUN /srv/venv/bin/pip3 install --no-cache-dir notebook ipykernel jupyterhub
915

10-
ENV HOME /home/jovyan
11-
ENV USER jovyan
1216
ENV PATH /srv/venv/bin:$PATH
17+
1318
WORKDIR /home/jovyan
1419

1520
EXPOSE 8888

0 commit comments

Comments
 (0)