File tree Expand file tree Collapse file tree 1 file changed +12
-19
lines changed Expand file tree Collapse file tree 1 file changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -3,40 +3,33 @@ FROM python:3.9-slim-bullseye
3
3
# VULN_SCAN_TIME=
4
4
5
5
ENV DEBIAN_FRONTEND=noninteractive \
6
- LANG=en_US.UTF-8 \
7
- LC_ALL=en_US.UTF-8 \
8
- LANGUAGE=en_US.UTF-8 \
9
6
NB_USER=jovyan \
10
7
NB_UID=1000 \
11
8
HOME=/home/jovyan
12
9
10
+ RUN adduser --disabled-password \
11
+ --gecos "Default user" \
12
+ --uid ${NB_UID} \
13
+ --home ${HOME} \
14
+ --force-badname \
15
+ ${NB_USER}
16
+
13
17
RUN apt-get update \
14
18
&& apt-get upgrade -y \
15
19
&& apt-get install -y --no-install-recommends \
16
20
ca-certificates \
17
21
dnsutils \
18
22
git \
19
- locales \
20
23
iputils-ping \
21
24
tini \
22
- && rm -rf /var/lib/apt/lists/* \
23
- && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
24
- && locale-gen
25
-
26
- RUN adduser --disabled-password \
27
- --gecos "Default user" \
28
- --uid ${NB_UID} \
29
- --home ${HOME} \
30
- --force-badname \
31
- ${NB_USER}
32
-
33
- USER $NB_USER
25
+ && rm -rf /var/lib/apt/lists/*
34
26
35
27
COPY requirements.txt /tmp/requirements.txt
36
28
RUN pip install --no-cache-dir -r /tmp/requirements.txt
37
29
38
- # nbgitpuller is installed in requirements.txt for demo purposes, and this
39
- # enables it to function.
40
- RUN jupyter serverextension enable --py nbgitpuller --sys-prefix
30
+ WORKDIR ${HOME}
31
+ USER ${NB_USER}
41
32
33
+ EXPOSE 8888
42
34
ENTRYPOINT ["tini" , "--" ]
35
+ CMD ["jupyter" , "lab" ]
You can’t perform that action at this time.
0 commit comments