We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff65d74 commit 4da9fb8Copy full SHA for 4da9fb8
images/singleuser-sample/Dockerfile
@@ -4,12 +4,17 @@ RUN apt-get update && \
4
apt-get install --yes --no-install-recommends python3 python3-venv && \
5
apt-get purge && apt-get clean
6
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
13
RUN python3 -m venv /srv/venv
14
RUN /srv/venv/bin/pip3 install --no-cache-dir notebook ipykernel jupyterhub
15
-ENV HOME /home/jovyan
-ENV USER jovyan
16
ENV PATH /srv/venv/bin:$PATH
17
18
WORKDIR /home/jovyan
19
20
EXPOSE 8888
0 commit comments