Added Perl 5.20.1

This commit is contained in:
Peter Martini 2014-09-15 23:14:32 -04:00
parent 8da8b01cd2
commit ca37376ecd
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,25 @@
FROM buildpack-deps
MAINTAINER Peter Martini <PeterCMartini@GMail.com>
RUN apt-get update && apt-get install -y curl procps
RUN mkdir /usr/src/perl
WORKDIR /usr/src/perl
RUN curl -SL http://www.cpan.org/src/5.0/perl-5.20.1.tar.gz \
| tar -xz --strip-components=1
RUN ./Configure -Dusethreads -Duse64bitall -des \
&& make -j$(nproc) \
&& TEST_JOBS=$(nproc) make test_harness \
&& make install \
&& make veryclean
WORKDIR /usr/src
RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
&& chmod +x cpanm \
&& ./cpanm App::cpanminus \
&& rm ./cpanm
WORKDIR /root
CMD ["perl5.20.1","-de0"]

View file

@ -0,0 +1,25 @@
FROM buildpack-deps
MAINTAINER Peter Martini <PeterCMartini@GMail.com>
RUN apt-get update && apt-get install -y curl procps
RUN mkdir /usr/src/perl
WORKDIR /usr/src/perl
RUN curl -SL http://www.cpan.org/src/5.0/perl-5.20.1.tar.gz \
| tar -xz --strip-components=1
RUN ./Configure -Duse64bitall -des \
&& make -j$(nproc) \
&& TEST_JOBS=$(nproc) make test_harness \
&& make install \
&& make veryclean
WORKDIR /usr/src
RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
&& chmod +x cpanm \
&& ./cpanm App::cpanminus \
&& rm ./cpanm
WORKDIR /root
CMD ["perl5.20.1","-de0"]