Skip to content

Commit 2ffdcf6

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Dockerfile

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

99
RUN perl -V
1010

11+
RUN echo "DEBUG: BASE value is: ${BASE}" && \
12+
if echo "${BASE}" | grep -q "buster"; then \
13+
echo "DEBUG: BASE contains buster, updating sources.list"; \
14+
sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list; \
15+
sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list; \
16+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until; \
17+
echo "DEBUG: Archive sources configured successfully"; \
18+
else \
19+
echo "DEBUG: BASE does not contain buster, skipping archive configuration"; \
20+
fi
21+
1122
RUN apt-get update && \
1223
apt-get dist-upgrade -y && \
1324
apt-get -y --no-install-recommends install \

0 commit comments

Comments
 (0)