File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,25 @@ ARG BASE
2
2
ARG CPANOUTDATED
3
3
FROM perl:${BASE}
4
4
5
+ ENV BASE_IMAGE=${BASE}
6
+
5
7
SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
6
8
7
9
COPY cpanfile /tmp/
8
10
9
11
RUN perl -V
10
12
13
+ RUN echo "DEBUG: BASE value is: ${BASE_IMAGE}" && \
14
+ if echo "${BASE_IMAGE}" | grep -q "buster" ; then \
15
+ echo "DEBUG: BASE contains buster, updating sources.list" ; \
16
+ sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list; \
17
+ sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list; \
18
+ echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until; \
19
+ echo "DEBUG: Archive sources configured successfully" ; \
20
+ else \
21
+ echo "DEBUG: BASE does not contain buster, skipping archive configuration" ; \
22
+ fi
23
+
11
24
RUN apt-get update && \
12
25
apt-get dist-upgrade -y && \
13
26
apt-get -y --no-install-recommends install \
You can’t perform that action at this time.
0 commit comments