From c6fa69745a5d97b1a32266b576a829cbebbd10f9 Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Wed, 18 Feb 2015 15:04:32 -0800 Subject: [PATCH] Use official image for push script and specify mojo version --- Dockerfile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aea71edeb..cfd170428 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,19 @@ -FROM tianon/mojo +FROM perl:5.20 + +# secure by default ♥ (thanks to sri!) +ENV PERL_CPANM_OPT --verbose --mirror https://cpan.metacpan.org --mirror-only +RUN cpanm Digest::SHA Module::Signature +ENV PERL_CPANM_OPT $PERL_CPANM_OPT --verify + +# reinstall cpanm itself, for good measure +RUN cpanm App::cpanminus + +RUN cpanm Mojolicious@5.80 + +RUN cpanm EV +RUN cpanm IO::Socket::IP +RUN cpanm --notest IO::Socket::SSL +# the tests for IO::Socket::SSL like to hang... :( RUN cpanm Term::ReadKey @@ -7,4 +22,4 @@ RUN apt-get update && apt-get install -y vim && rm -rf /var/lib/apt/lists/* COPY . /usr/src/docker-library-docs WORKDIR /usr/src/docker-library-docs -CMD ["./push.pl"] +ENTRYPOINT ["./push.pl"]