File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
quay.io/wikipedialibrary/debian_perl Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1- FROM quay.io/wikipedialibrary/debian:trixie-slim-updated AS perl_build
1+ # Use an obsolete base image for compatibility
2+ FROM quay.io/wikipedialibrary/debian:buster-slim AS perl_build
3+
24# The last version that supports variable-width negative look behind
35ENV PERL_VERSION=5.32.1
6+
7+ # Use the archive repositories
8+ RUN find /etc/apt -type f -print0 -name "*.list" | xargs -0 sed -i 's/deb\. debian\. org/archive.debian.org/g'
9+
410# Base dependencies; split out to create cachable layer.
511RUN apt update; \
612 apt install -y \
713 build-essential \
814 gcc \
915 wget ; \
1016 apt clean ; \
17+ # Fetch, build, and install perl into /opt
1118 wget https://www.cpan.org/src/5.0/perl-${PERL_VERSION}.tar.gz ; \
1219 tar -xvf perl-${PERL_VERSION}.tar.gz ; \
1320 cd perl-${PERL_VERSION} ; \
1421 ./Configure -des -Dprefix=/opt/perl ; \
1522 make && make test && make install
1623
17- FROM quay.io/wikipedialibrary/debian:trixie-slim-updated
24+ # Copy perl only into a new slim image
25+ FROM quay.io/wikipedialibrary/debian:buster-slim
1826COPY --from=perl_build /opt/perl /opt/perl
1927
2028ENTRYPOINT ["/opt/perl/bin/perl" ]
You can’t perform that action at this time.
0 commit comments