Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build debugging images #131

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
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
37 changes: 37 additions & 0 deletions 5.034.001-debug,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:bullseye
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
&& rm perl-5.34.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
37 changes: 37 additions & 0 deletions 5.034.001-debug,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:buster
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
&& rm perl-5.34.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
37 changes: 37 additions & 0 deletions 5.034.001-debug-bullseye/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:bullseye
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
&& rm perl-5.34.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
37 changes: 37 additions & 0 deletions 5.034.001-debug-buster/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:buster
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.34.1.tar.xz -o perl-5.34.1.tar.xz \
&& echo '6d52cf833ff1af27bb5e986870a2c30cec73c044b41e3458cd991f94374039f7 *perl-5.34.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.34.1.tar.xz -C /usr/src/perl \
&& rm perl-5.34.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.34.1","-de0"]
37 changes: 37 additions & 0 deletions 5.036.001-debug,threaded-bookworm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:bookworm
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \
&& echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \
&& rm perl-5.36.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
37 changes: 37 additions & 0 deletions 5.036.001-debug,threaded-bullseye/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:bullseye
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \
&& echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \
&& rm perl-5.36.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
37 changes: 37 additions & 0 deletions 5.036.001-debug,threaded-buster/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:buster
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \
&& echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \
&& rm perl-5.36.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
37 changes: 37 additions & 0 deletions 5.036.001-debug-bookworm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:bookworm
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \
&& echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \
&& rm perl-5.36.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

CMD ["perl5.36.1","-de0"]
37 changes: 37 additions & 0 deletions 5.036.001-debug-bullseye/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM buildpack-deps:bullseye
LABEL maintainer="Peter Martini <[email protected]>, Zak B. Elep <[email protected]>"

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

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdb \
&& curl -fL https://www.cpan.org/src/5.0/perl-5.36.1.tar.xz -o perl-5.36.1.tar.xz \
&& echo 'bd91217ea8a8c8b81f21ebbb6cefdf0d13ae532013f944cdece2cd51aef4b6a7 *perl-5.36.1.tar.xz' | sha256sum --strict --check - \
&& tar --strip-components=1 -xaf perl-5.36.1.tar.xz -C /usr/src/perl \
&& rm perl-5.36.1.tar.xz \
&& 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 -Doptimize=-g -DEBUGGING=both -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 bin/cpanm . && cd /root \
&& cpanm IO::Socket::SSL \
&& curl -fL https://raw.githubusercontent.com/skaji/cpm/0.997011/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 '7dee2176a450a8be3a6b9b91dac603a0c3a7e807042626d3fe6c93d843f75610 */usr/local/bin/cpm' | sha256sum --strict --check - \
&& chmod +x /usr/local/bin/cpm \
&& rm -fr /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -fr /root/.cpanm /usr/src/perl /usr/src/App-cpanminus-1.7047* /tmp/* \
&& cpanm --version && cpm --version

WORKDIR /usr/src/app

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