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
22ARG CPANOUTDATED
33FROM perl:${BASE}
44
5+ ENV BASE_IMAGE=${BASE}
6+
57SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
68
79COPY cpanfile /tmp/
810
911RUN perl -V
1012
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+
1124RUN apt-get update && \
1225 apt-get dist-upgrade -y && \
1326 apt-get -y --no-install-recommends install \
You can’t perform that action at this time.
0 commit comments