Skip to content

Commit 887e9c3

Browse files
committed
Remove build deps (but retain make)
`cpanm` can make use of `make` when installing pure-Perl stuff.
1 parent 782ed43 commit 887e9c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

alpine/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ENV PERL_CPANM_OPT --no-wget
99

1010
RUN set -x \
1111
&& NPROC=$(getconf _NPROCESSORS_ONLN) \
12-
&& apk add --no-cache curl procps tar build-base \
12+
&& apk add --no-cache make \
13+
&& apk add --no-cache --virtual .build-deps curl procps tar build-base \
1314
&& curl -SL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.22.1.tar.bz2 -o perl-5.22.1.tar.bz2 \
1415
&& echo '29f9b320b0299577a3e1d02e9e8ef8f26f160332 *perl-5.22.1.tar.bz2' | sha1sum -c - \
1516
&& tar --strip-components=1 -xjf perl-5.22.1.tar.bz2 -C /usr/src/perl \
@@ -26,6 +27,7 @@ RUN set -x \
2627
&& curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
2728
&& chmod +x cpanm \
2829
&& ./cpanm App::cpanminus \
30+
&& apk del .build-deps \
2931
&& rm -fr ./cpanm /root/.cpanm /usr/src/perl /tmp/*
3032

3133
WORKDIR /root

0 commit comments

Comments
 (0)