FROM buildpack-deps MAINTAINER Peter Martini RUN apt-get update \ && apt-get install -y curl procps \ && rm -fr /var/lib/apt/lists/* RUN mkdir /usr/src/perl COPY *.patch /usr/src/perl/ WORKDIR /usr/src/perl RUN curl -SL https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.20.3.tar.bz2 -o perl-5.20.3.tar.bz2 \ && echo 'eedf9e3be3c83bef15911996ed18703cffe4d113 *perl-5.20.3.tar.bz2' | sha1sum -c - \ && tar --strip-components=1 -xjf perl-5.20.3.tar.bz2 -C /usr/src/perl \ && rm perl-5.20.3.tar.bz2 \ && cat *.patch | patch -p1 \ && ./Configure -Duse64bitall -des \ && make -j$(nproc) \ && TEST_JOBS=$(nproc) make test_harness \ && make install \ && cd /usr/src \ && curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \ && chmod +x cpanm \ && ./cpanm App::cpanminus \ && rm -fr ./cpanm /root/.cpanm /usr/src/perl WORKDIR /root CMD ["perl5.20.3","-de0"]