Dockerfile 766 B

123456789101112131415161718192021222324252627
  1. FROM perl:5.20
  2. # secure by default ♥ (thanks to sri!)
  3. ENV PERL_CPANM_OPT --verbose --mirror https://cpan.metacpan.org
  4. # TODO find a way to make --mirror-only / SSL work with backpan too :(
  5. RUN cpanm Digest::SHA Module::Signature
  6. # TODO find a way to make --verify work with backpan as well :'(
  7. #ENV PERL_CPANM_OPT $PERL_CPANM_OPT --verify
  8. # reinstall cpanm itself, for good measure
  9. RUN cpanm App::cpanminus
  10. RUN cpanm [email protected]
  11. RUN cpanm EV
  12. RUN cpanm IO::Socket::IP
  13. RUN cpanm --notest IO::Socket::SSL
  14. # the tests for IO::Socket::SSL like to hang... :(
  15. RUN cpanm Term::ReadKey
  16. RUN apt-get update && apt-get install -y vim && rm -rf /var/lib/apt/lists/*
  17. COPY . /usr/src/docker-library-docs
  18. WORKDIR /usr/src/docker-library-docs
  19. ENTRYPOINT ["./push.pl"]