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/
8
8
9
9
RUN perl -V
10
10
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
+
11
22
RUN apt-get update && \
12
23
apt-get dist-upgrade -y && \
13
24
apt-get -y --no-install-recommends install \
You can’t perform that action at this time.
0 commit comments