Skip to content

Commit 2c50ff5

Browse files
committed
Remove apt repository list and custom scripts from Dockerfiles
1 parent a5946e0 commit 2c50ff5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/dask-gateway/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ RUN [ -f /opt/post-install-${IMAGE2BUILD}.sh ] && /opt/post-install-${IMAGE2BUIL
7272

7373
RUN 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
7679
RUN useradd -m user
7780
USER user

.github/dask-gateway/Dockerfile.mockup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ RUN pip install opentelemetry-distro opentelemetry-exporter-otlp opentelemetry-i
8585

8686
RUN 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
8992
RUN useradd -m user
9093

.github/jupyter/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ COPY --chown=rspy:rspy ./resources/jupyter_server_config.py /tmp/jupyter_server_
9999
COPY resources/start-notebook.sh /usr/local/bin/
100100
RUN 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+
102105
ENTRYPOINT ["start-notebook.sh"]
103106

104107
EXPOSE 8888

0 commit comments

Comments
 (0)