Skip to content

Commit

Permalink
Remove build deps (but retain make)
Browse files Browse the repository at this point in the history
`cpanm` can make use of `make` when installing pure-Perl stuff.
  • Loading branch information
zakame committed Apr 22, 2016
1 parent 2dc8077 commit ea6f0fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ENV PERL_CPANM_OPT --no-wget

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

WORKDIR /root
Expand Down

0 comments on commit ea6f0fd

Please sign in to comment.