Skip to content

Commit

Permalink
Upgrade gosu from testing, resolves #458
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
  • Loading branch information
holgerfriedrich committed Feb 24, 2025
1 parent 2002b0d commit b20cbdb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ LABEL org.opencontainers.image.created=$BUILD_DATE \
# https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Workaround to use gosu from trixie to avoid CVE warnings
RUN echo "workaround for outdated gosu binary in bookworm" && \
printf "Types: deb\nURIs: http://http.us.debian.org/debian\nSuites: trixie\nComponents: main\nSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg\n" > /etc/apt/sources.list.d/trixie.sources && \
printf "Package: *\nPin: release a=testing\nPin-Priority: 400\n" > /etc/apt/preferences.d/testing.pref

# Install basepackages. Versions are "pinned" by using a pinned base image.
# hadolint ignore=DL3008
RUN apt-get update && \

Check failure on line 49 in debian/Dockerfile

View workflow job for this annotation

GitHub Actions / latest-debian

SC2143 style: Use grep -q instead of comparing output with [ -n .. ].

Check failure on line 49 in debian/Dockerfile

View workflow job for this annotation

GitHub Actions / snapshot-debian

SC2143 style: Use grep -q instead of comparing output with [ -n .. ].
Expand All @@ -56,7 +61,7 @@ RUN apt-get update && \
ca-certificates \
curl \
fontconfig \
gosu \
gosu/trixie \
iputils-ping \
libcap2-bin \
locales \
Expand Down

0 comments on commit b20cbdb

Please sign in to comment.