Skip to content

Commit ace92d3

Browse files
authored
Merge pull request #1550 from consideRatio/pr/apt-get-upgrade
Run apt-get upgrade to patch known vulnerabilities faster
2 parents 9e53812 + 2bdaa2c commit ace92d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

base-notebook/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ USER root
1919

2020
# Install all OS dependencies for notebook server that starts but lacks all
2121
# features (e.g., download as all possible file formats)
22-
# Install tini: init for containers
22+
# - tini is installed as a helpful container entrypoint that reaps zombie
23+
# processes and such of the actual executable we want to start, see
24+
# https://github.com/krallin/tini#why-tini for details.
25+
# - apt-get upgrade is run to patch known vulnerabilities in apt-get packages as
26+
# the ubuntu base image is rebuilt too seldom sometimes (less than once a month)
2327
ENV DEBIAN_FRONTEND noninteractive
2428
RUN apt-get update --yes && \
29+
apt-get upgrade --yes && \
2530
apt-get install --yes --no-install-recommends \
2631
tini \
2732
wget \

0 commit comments

Comments
 (0)