Skip to content

Commit 1acd536

Browse files
author
Nicolas Rochelemagne
committed
Use debian archive for buster images
1 parent 8acfe93 commit 1acd536

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ COPY cpanfile /tmp/
88

99
RUN perl -V
1010

11+
RUN if [ "${BASE}" = "*buster*" ]; then \
12+
sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \
13+
sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \
14+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until; \
15+
fi
16+
1117
RUN apt-get update && \
1218
apt-get dist-upgrade -y && \
1319
apt-get -y --no-install-recommends install \

0 commit comments

Comments
 (0)