Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ FROM buildpack-deps:bookworm
WORKDIR /usr/src/perl

RUN true \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.4.tar.gz -o perl-5.38.4.tar.gz \
&& echo 'fb888accf8b50b5180e91166e5153608be294c57c19878e95f7659c1f1f12758 *perl-5.38.4.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.4.tar.gz -C /usr/src/perl \
&& rm perl-5.38.4.tar.gz \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
Expand All @@ -25,7 +25,7 @@ RUN true \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
Expand All @@ -39,4 +39,4 @@ RUN true \

WORKDIR /usr/src/app

CMD ["perl5.38.4","-de0"]
CMD ["perl5.38.5","-de0"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ FROM buildpack-deps:bullseye
WORKDIR /usr/src/perl

RUN true \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.4.tar.gz -o perl-5.38.4.tar.gz \
&& echo 'fb888accf8b50b5180e91166e5153608be294c57c19878e95f7659c1f1f12758 *perl-5.38.4.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.4.tar.gz -C /usr/src/perl \
&& rm perl-5.38.4.tar.gz \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
Expand All @@ -25,7 +25,7 @@ RUN true \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
Expand All @@ -39,4 +39,4 @@ RUN true \

WORKDIR /usr/src/app

CMD ["perl5.38.4","-de0"]
CMD ["perl5.38.5","-de0"]
42 changes: 42 additions & 0 deletions 5.038.005-main,threaded-trixie/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM buildpack-deps:trixie

# No DevelPatchPerl.patch generated
WORKDIR /usr/src/perl

RUN true \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -des \
&& make -j$(nproc) \
&& TEST_JOBS=$(nproc) make test_harness \
&& make install \
&& cd /usr/src \
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \
&& echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \
&& tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 \
&& perl -pi -E 's{http://(www\.cpan\.org|backpan\.perl\.org|cpan\.metacpan\.org|fastapi\.metacpan\.org|cpanmetadb\.plackperl\.org)}{https://$1}g' bin/cpanm \
&& perl -pi -E 's{try_lwp=>1}{try_lwp=>0}g' bin/cpanm \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997017/cpm -o /usr/local/bin/cpm \
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
&& echo 'e3931a7d994c96f9c74b97d1b5b75a554fc4f06eadef1eca26ecc0bdcd1f2d11 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& true \
&& rm -fr /root/.cpanm /root/Net-SSLeay-1.94* /root/IO-Socket-SSL-2.091* /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.38.5","-de0"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ FROM buildpack-deps:bookworm
WORKDIR /usr/src/perl

RUN true \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.40.2.tar.gz -o perl-5.40.2.tar.gz \
&& echo '10d4647cfbb543a7f9ae3e5f6851ec49305232ea7621aed24c7cfbb0bef4b70d *perl-5.40.2.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.40.2.tar.gz -C /usr/src/perl \
&& rm perl-5.40.2.tar.gz \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
Expand All @@ -25,7 +25,7 @@ RUN true \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
Expand All @@ -39,4 +39,4 @@ RUN true \

WORKDIR /usr/src/app

CMD ["perl5.40.2","-de0"]
CMD ["perl5.38.5","-de0"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ FROM buildpack-deps:bullseye
WORKDIR /usr/src/perl

RUN true \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.40.2.tar.gz -o perl-5.40.2.tar.gz \
&& echo '10d4647cfbb543a7f9ae3e5f6851ec49305232ea7621aed24c7cfbb0bef4b70d *perl-5.40.2.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.40.2.tar.gz -C /usr/src/perl \
&& rm perl-5.40.2.tar.gz \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
Expand All @@ -25,7 +25,7 @@ RUN true \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
Expand All @@ -39,4 +39,4 @@ RUN true \

WORKDIR /usr/src/app

CMD ["perl5.40.2","-de0"]
CMD ["perl5.38.5","-de0"]
42 changes: 42 additions & 0 deletions 5.038.005-main-trixie/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM buildpack-deps:trixie

# No DevelPatchPerl.patch generated
WORKDIR /usr/src/perl

RUN true \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -des \
&& make -j$(nproc) \
&& TEST_JOBS=$(nproc) make test_harness \
&& make install \
&& cd /usr/src \
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \
&& echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \
&& tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 \
&& perl -pi -E 's{http://(www\.cpan\.org|backpan\.perl\.org|cpan\.metacpan\.org|fastapi\.metacpan\.org|cpanmetadb\.plackperl\.org)}{https://$1}g' bin/cpanm \
&& perl -pi -E 's{try_lwp=>1}{try_lwp=>0}g' bin/cpanm \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997017/cpm -o /usr/local/bin/cpm \
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
&& echo 'e3931a7d994c96f9c74b97d1b5b75a554fc4f06eadef1eca26ecc0bdcd1f2d11 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& true \
&& rm -fr /root/.cpanm /root/Net-SSLeay-1.94* /root/IO-Socket-SSL-2.091* /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.38.5","-de0"]
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ RUN apt-get update \
zlib1g-dev \
xz-utils \
libssl-dev \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.40.2.tar.gz -o perl-5.40.2.tar.gz \
&& echo '10d4647cfbb543a7f9ae3e5f6851ec49305232ea7621aed24c7cfbb0bef4b70d *perl-5.40.2.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.40.2.tar.gz -C /usr/src/perl \
&& rm perl-5.40.2.tar.gz \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
Expand All @@ -46,7 +46,7 @@ RUN apt-get update \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
Expand All @@ -64,4 +64,4 @@ RUN apt-get update \

WORKDIR /usr/src/app

CMD ["perl5.40.2","-de0"]
CMD ["perl5.38.5","-de0"]
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ RUN apt-get update \
zlib1g-dev \
xz-utils \
libssl-dev \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.40.2.tar.gz -o perl-5.40.2.tar.gz \
&& echo '10d4647cfbb543a7f9ae3e5f6851ec49305232ea7621aed24c7cfbb0bef4b70d *perl-5.40.2.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.40.2.tar.gz -C /usr/src/perl \
&& rm perl-5.40.2.tar.gz \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
Expand All @@ -46,7 +46,7 @@ RUN apt-get update \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
Expand All @@ -64,4 +64,4 @@ RUN apt-get update \

WORKDIR /usr/src/app

CMD ["perl5.40.2","-de0"]
CMD ["perl5.38.5","-de0"]
67 changes: 67 additions & 0 deletions 5.038.005-slim,threaded-trixie/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
FROM debian:trixie-slim

# No DevelPatchPerl.patch generated
WORKDIR /usr/src/perl

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bzip2 \
ca-certificates \
# cpio \
curl \
dpkg-dev \
# file \
gcc \
# g++ \
# libbz2-dev \
# libdb-dev \
libc6-dev \
# libgdbm-dev \
# liblzma-dev \
make \
netbase \
patch \
# procps \
zlib1g-dev \
xz-utils \
libssl-dev \
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
&& rm perl-5.38.5.tar.gz \
&& cat *.patch | patch -p1 \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -des \
&& make -j$(nproc) \
&& TEST_JOBS=$(nproc) make test_harness \
&& make install \
&& cd /usr/src \
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \
&& echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \
&& tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 \
&& perl -pi -E 's{http://(www\.cpan\.org|backpan\.perl\.org|cpan\.metacpan\.org|fastapi\.metacpan\.org|cpanmetadb\.plackperl\.org)}{https://$1}g' bin/cpanm \
&& perl -pi -E 's{try_lwp=>1}{try_lwp=>0}g' bin/cpanm \
&& perl bin/cpanm . && cd /root \
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997017/cpm -o /usr/local/bin/cpm \
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
&& echo 'e3931a7d994c96f9c74b97d1b5b75a554fc4f06eadef1eca26ecc0bdcd1f2d11 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& savedPackages="ca-certificates curl make netbase zlib1g-dev libssl-dev" \
&& apt-mark auto '.*' > /dev/null \
&& apt-mark manual $savedPackages \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /root/Net-SSLeay-1.94* /root/IO-Socket-SSL-2.091* /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.38.5","-de0"]
Loading