Skip to content

Commit d15bd4c

Browse files
committed
Update Dockerfile to point apt sources to the Debian archive due to Buster EOL, and disable Release file validity checks for successful updates and installations.
1 parent cacff94 commit d15bd4c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.docker/production/Dockerfile.gha

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ ENV BUNDLER_VERSION=$BUNDLER_VERSION
1515

1616
# Only install what's needed that isn't in the base image
1717
# https://github.com/docker-library/ruby/blob/master/2.7/slim-buster/Dockerfile
18-
RUN apt-get update \
18+
# Buster is EOL; point apt sources to the Debian archive and disable
19+
# Release file validity checks so updates/installations work.
20+
RUN sed -i \
21+
-e 's|deb.debian.org/debian|archive.debian.org/debian|g' \
22+
-e 's|security.debian.org/debian-security|archive.debian.org/debian-security|g' \
23+
/etc/apt/sources.list \
24+
&& apt-get -o Acquire::Check-Valid-Until=false update \
1925
&& apt-get -yq dist-upgrade \
2026
&& apt-get install -y \
2127
fontconfig \

0 commit comments

Comments
 (0)