perl.dockerfile 883 B

1234567891011121314151617181920
  1. FROM tfb/base:latest
  2. ENV PERL_VERSION="5.18"
  3. ENV PERL=/perl-${PERL_VERSION}
  4. RUN wget -q -O perl-build.pl https://raw.github.com/tokuhirom/Perl-Build/master/perl-build
  5. # compile with optimizations, n.b. this does not turn on debugging
  6. RUN perl perl-build.pl -DDEBUGGING=-g 5.18.2 perl-${PERL_VERSION} 2>&1 | tee /perl-install.log | awk '{ if (NR%100 == 0) printf "."}'
  7. RUN wget -O cpanminus.pl http://cpanmin.us
  8. RUN perl-${PERL_VERSION}/bin/perl cpanminus.pl --notest --no-man-page App::cpanminus
  9. # Install only a bare-bones of Perl modules
  10. # Install others in the per-framework install script or cpanfile
  11. RUN perl-${PERL_VERSION}/bin/cpanm -f --notest --no-man-page Carton JSON JSON::XS IO::Socket::IP IO::Socket::SSL
  12. ENV PERL_HOME=${PERL}
  13. #ENV PERL_CARTON_PATH=$TROOT/local
  14. #ENV PERL5LIB=${PERL_CARTON_PATH}/lib/perl5
  15. #ENV PATH=${PERL_CARTON_PATH}/bin:${PERL_HOME}/bin:${PATH}