Skip to content

Commit 31ecb98

Browse files
committed
generate.pl: Configure cpanm to install over HTTPS
- pass `--from https://www.cpan.org` to cpanm by default - Ensure ca-certificates and curl are installed in slim builds so HTTPS installs work
1 parent 48be838 commit 31ecb98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generate.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sub die_with_sample {
6161
chomp $docker_slim_run_install;
6262

6363
my $docker_slim_run_purge = <<'EOF';
64-
savedPackages="make netbase" \
64+
savedPackages="ca-certificates curl make netbase" \
6565
&& apt-mark auto '.*' > /dev/null \
6666
&& apt-mark manual $savedPackages \
6767
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
@@ -280,6 +280,8 @@ =head1 DESCRIPTION
280280
COPY *.patch /usr/src/perl/
281281
WORKDIR /usr/src/perl
282282
283+
ENV PERL_CPANM_OPT="--from https://www.cpan.org"
284+
283285
RUN {{docker_slim_run_install}} \
284286
&& curl -SL {{url}} -o perl-{{version}}.tar.{{type}} \
285287
&& echo '{{sha256}} *perl-{{version}}.tar.{{type}}' | sha256sum -c - \

0 commit comments

Comments
 (0)