File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ RUN [ -f /opt/post-install-${IMAGE2BUILD}.sh ] && /opt/post-install-${IMAGE2BUIL
7272
7373RUN apt autoremove -y gcc && layer-cleanup.sh
7474
75+ # Remove apt repository list and custom scripts
76+ RUN rm -f /etc/apt/sources.list /usr/local/bin/layer-cleanup.sh /usr/local/bin/restore-apt.sh
77+
7578# Add a default user
7679RUN useradd -m user
7780USER user
Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ RUN pip install opentelemetry-distro opentelemetry-exporter-otlp opentelemetry-i
8585
8686RUN apt update && apt install -y python3-pydot graphviz && layer-cleanup.sh
8787
88+ # Remove apt repository list and custom scripts
89+ RUN rm -f /etc/apt/sources.list /usr/local/bin/layer-cleanup.sh /usr/local/bin/restore-apt.sh
90+
8891# Add a default user
8992RUN useradd -m user
9093
Original file line number Diff line number Diff line change @@ -99,6 +99,9 @@ COPY --chown=rspy:rspy ./resources/jupyter_server_config.py /tmp/jupyter_server_
9999COPY resources/start-notebook.sh /usr/local/bin/
100100RUN chmod 755 /usr/local/bin/start-notebook.sh
101101
102+ # Remove apt repository list and custom scripts
103+ RUN rm -f /etc/apt/sources.list /usr/local/bin/layer-cleanup.sh /usr/local/bin/restore-apt.sh
104+
102105ENTRYPOINT ["start-notebook.sh" ]
103106
104107EXPOSE 8888
You can’t perform that action at this time.
0 commit comments