File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ COPY cpanfile /tmp/
88
99RUN 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+
1122RUN apt-get update && \
1223 apt-get dist-upgrade -y && \
1324 apt-get -y --no-install-recommends install \
You can’t perform that action at this time.
0 commit comments