Skip to content

Commit 5821dbd

Browse files
committed
⚙️ Regenerate Dockerfiles
1 parent 9a9301f commit 5821dbd

File tree

48 files changed

+1024
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1024
-152
lines changed

5.038.004-main,threaded-bookworm/Dockerfile renamed to 5.038.005-main,threaded-bookworm/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ FROM buildpack-deps:bookworm
44
WORKDIR /usr/src/perl
55

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

4040
WORKDIR /usr/src/app
4141

42-
CMD ["perl5.38.4","-de0"]
42+
CMD ["perl5.38.5","-de0"]

5.038.004-main,threaded-bullseye/Dockerfile renamed to 5.038.005-main,threaded-bullseye/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ FROM buildpack-deps:bullseye
44
WORKDIR /usr/src/perl
55

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

4040
WORKDIR /usr/src/app
4141

42-
CMD ["perl5.38.4","-de0"]
42+
CMD ["perl5.38.5","-de0"]
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM buildpack-deps:trixie
2+
3+
# No DevelPatchPerl.patch generated
4+
WORKDIR /usr/src/perl
5+
6+
RUN true \
7+
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
8+
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
9+
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
10+
&& rm perl-5.38.5.tar.gz \
11+
&& cat *.patch | patch -p1 \
12+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
13+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
14+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
15+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -des \
16+
&& make -j$(nproc) \
17+
&& TEST_JOBS=$(nproc) make test_harness \
18+
&& make install \
19+
&& cd /usr/src \
20+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \
21+
&& echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \
22+
&& tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 \
23+
&& 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 \
24+
&& perl -pi -E 's{try_lwp=>1}{try_lwp=>0}g' bin/cpanm \
25+
&& perl bin/cpanm . && cd /root \
26+
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
27+
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
28+
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
29+
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
30+
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
31+
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
32+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997017/cpm -o /usr/local/bin/cpm \
33+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
34+
&& echo 'e3931a7d994c96f9c74b97d1b5b75a554fc4f06eadef1eca26ecc0bdcd1f2d11 */usr/local/bin/cpm' | sha256sum --strict --check - \
35+
&& chmod +x /usr/local/bin/cpm \
36+
&& true \
37+
&& 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/* \
38+
&& cpanm --version && cpm --version
39+
40+
WORKDIR /usr/src/app
41+
42+
CMD ["perl5.38.5","-de0"]

5.040.002-main-bookworm/Dockerfile renamed to 5.038.005-main-bookworm/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ FROM buildpack-deps:bookworm
44
WORKDIR /usr/src/perl
55

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

4040
WORKDIR /usr/src/app
4141

42-
CMD ["perl5.40.2","-de0"]
42+
CMD ["perl5.38.5","-de0"]

5.040.002-main-bullseye/Dockerfile renamed to 5.038.005-main-bullseye/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ FROM buildpack-deps:bullseye
44
WORKDIR /usr/src/perl
55

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

4040
WORKDIR /usr/src/app
4141

42-
CMD ["perl5.40.2","-de0"]
42+
CMD ["perl5.38.5","-de0"]

5.038.005-main-trixie/Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM buildpack-deps:trixie
2+
3+
# No DevelPatchPerl.patch generated
4+
WORKDIR /usr/src/perl
5+
6+
RUN true \
7+
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
8+
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
9+
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
10+
&& rm perl-5.38.5.tar.gz \
11+
&& cat *.patch | patch -p1 \
12+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
13+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
14+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
15+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Duseshrplib -Dvendorprefix=/usr/local -des \
16+
&& make -j$(nproc) \
17+
&& TEST_JOBS=$(nproc) make test_harness \
18+
&& make install \
19+
&& cd /usr/src \
20+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \
21+
&& echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \
22+
&& tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 \
23+
&& 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 \
24+
&& perl -pi -E 's{try_lwp=>1}{try_lwp=>0}g' bin/cpanm \
25+
&& perl bin/cpanm . && cd /root \
26+
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
27+
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
28+
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
29+
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
30+
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
31+
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
32+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997017/cpm -o /usr/local/bin/cpm \
33+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
34+
&& echo 'e3931a7d994c96f9c74b97d1b5b75a554fc4f06eadef1eca26ecc0bdcd1f2d11 */usr/local/bin/cpm' | sha256sum --strict --check - \
35+
&& chmod +x /usr/local/bin/cpm \
36+
&& true \
37+
&& 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/* \
38+
&& cpanm --version && cpm --version
39+
40+
WORKDIR /usr/src/app
41+
42+
CMD ["perl5.38.5","-de0"]

5.040.002-slim,threaded-bookworm/Dockerfile renamed to 5.038.005-slim,threaded-bookworm/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ RUN apt-get update \
2525
zlib1g-dev \
2626
xz-utils \
2727
libssl-dev \
28-
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.40.2.tar.gz -o perl-5.40.2.tar.gz \
29-
&& echo '10d4647cfbb543a7f9ae3e5f6851ec49305232ea7621aed24c7cfbb0bef4b70d *perl-5.40.2.tar.gz' | sha256sum --strict --check - \
30-
&& tar --strip-components=1 -xaf perl-5.40.2.tar.gz -C /usr/src/perl \
31-
&& rm perl-5.40.2.tar.gz \
28+
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
29+
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
30+
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
31+
&& rm perl-5.38.5.tar.gz \
3232
&& cat *.patch | patch -p1 \
3333
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
3434
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
@@ -46,7 +46,7 @@ RUN apt-get update \
4646
&& perl bin/cpanm . && cd /root \
4747
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
4848
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
49-
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
49+
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
5050
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
5151
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
5252
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
@@ -64,4 +64,4 @@ RUN apt-get update \
6464

6565
WORKDIR /usr/src/app
6666

67-
CMD ["perl5.40.2","-de0"]
67+
CMD ["perl5.38.5","-de0"]

5.040.002-slim,threaded-bullseye/Dockerfile renamed to 5.038.005-slim,threaded-bullseye/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ RUN apt-get update \
2525
zlib1g-dev \
2626
xz-utils \
2727
libssl-dev \
28-
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.40.2.tar.gz -o perl-5.40.2.tar.gz \
29-
&& echo '10d4647cfbb543a7f9ae3e5f6851ec49305232ea7621aed24c7cfbb0bef4b70d *perl-5.40.2.tar.gz' | sha256sum --strict --check - \
30-
&& tar --strip-components=1 -xaf perl-5.40.2.tar.gz -C /usr/src/perl \
31-
&& rm perl-5.40.2.tar.gz \
28+
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
29+
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
30+
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
31+
&& rm perl-5.38.5.tar.gz \
3232
&& cat *.patch | patch -p1 \
3333
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
3434
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
@@ -46,7 +46,7 @@ RUN apt-get update \
4646
&& perl bin/cpanm . && cd /root \
4747
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
4848
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
49-
&& cpanm --from $PWD Net-SSLeay-1.94.tar.gz \
49+
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
5050
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
5151
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
5252
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
@@ -64,4 +64,4 @@ RUN apt-get update \
6464

6565
WORKDIR /usr/src/app
6666

67-
CMD ["perl5.40.2","-de0"]
67+
CMD ["perl5.38.5","-de0"]
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
FROM debian:trixie-slim
2+
3+
# No DevelPatchPerl.patch generated
4+
WORKDIR /usr/src/perl
5+
6+
RUN apt-get update \
7+
&& apt-get install -y --no-install-recommends \
8+
bzip2 \
9+
ca-certificates \
10+
# cpio \
11+
curl \
12+
dpkg-dev \
13+
# file \
14+
gcc \
15+
# g++ \
16+
# libbz2-dev \
17+
# libdb-dev \
18+
libc6-dev \
19+
# libgdbm-dev \
20+
# liblzma-dev \
21+
make \
22+
netbase \
23+
patch \
24+
# procps \
25+
zlib1g-dev \
26+
xz-utils \
27+
libssl-dev \
28+
&& curl -fL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.38.5.tar.gz -o perl-5.38.5.tar.gz \
29+
&& echo 'b7667d3ff309068852af7853910aaccec26c839d717402121b664ac705e07bfe *perl-5.38.5.tar.gz' | sha256sum --strict --check - \
30+
&& tar --strip-components=1 -xaf perl-5.38.5.tar.gz -C /usr/src/perl \
31+
&& rm perl-5.38.5.tar.gz \
32+
&& cat *.patch | patch -p1 \
33+
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
34+
&& archBits="$(dpkg-architecture --query DEB_BUILD_ARCH_BITS)" \
35+
&& archFlag="$([ "$archBits" = '64' ] && echo '-Duse64bitall' || echo '-Duse64bitint')" \
36+
&& ./Configure -Darchname="$gnuArch" "$archFlag" -Dusethreads -Duseshrplib -Dvendorprefix=/usr/local -des \
37+
&& make -j$(nproc) \
38+
&& TEST_JOBS=$(nproc) make test_harness \
39+
&& make install \
40+
&& cd /usr/src \
41+
&& curl -fLO https://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7047.tar.gz \
42+
&& echo '963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5 *App-cpanminus-1.7047.tar.gz' | sha256sum --strict --check - \
43+
&& tar -xzf App-cpanminus-1.7047.tar.gz && cd App-cpanminus-1.7047 \
44+
&& 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 \
45+
&& perl -pi -E 's{try_lwp=>1}{try_lwp=>0}g' bin/cpanm \
46+
&& perl bin/cpanm . && cd /root \
47+
&& curl -fLO 'https://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.94.tar.gz' \
48+
&& echo '9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d *Net-SSLeay-1.94.tar.gz' | sha256sum --strict --check - \
49+
&& cpanm --notest --from $PWD Net-SSLeay-1.94.tar.gz \
50+
&& curl -fLO 'https://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.091.tar.gz' \
51+
&& echo 'c5996e7335912a5c99e06bdb47ff39df309a857cbd8fd2627a021cefdb53cf54 *IO-Socket-SSL-2.091.tar.gz' | sha256sum --strict --check - \
52+
&& SSL_CERT_DIR=/etc/ssl/certs cpanm --from $PWD IO-Socket-SSL-2.091.tar.gz \
53+
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997017/cpm -o /usr/local/bin/cpm \
54+
# sha256 checksum is from docker-perl team, cf https://github.com/docker-library/official-images/pull/12612#issuecomment-1158288299
55+
&& echo 'e3931a7d994c96f9c74b97d1b5b75a554fc4f06eadef1eca26ecc0bdcd1f2d11 */usr/local/bin/cpm' | sha256sum --strict --check - \
56+
&& chmod +x /usr/local/bin/cpm \
57+
&& savedPackages="ca-certificates curl make netbase zlib1g-dev libssl-dev" \
58+
&& apt-mark auto '.*' > /dev/null \
59+
&& apt-mark manual $savedPackages \
60+
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
61+
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
62+
&& 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/* \
63+
&& cpanm --version && cpm --version
64+
65+
WORKDIR /usr/src/app
66+
67+
CMD ["perl5.38.5","-de0"]

0 commit comments

Comments
 (0)