Skip to content

Commit f88895a

Browse files
committed
debian_perl: debian buster; perl 5.32.1
1 parent 5fab676 commit f88895a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
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
35
ENV 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.
511
RUN 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
1826
COPY --from=perl_build /opt/perl /opt/perl
1927

2028
ENTRYPOINT ["/opt/perl/bin/perl"]

0 commit comments

Comments
 (0)