0

Docker file

Better to keep all this cpan stuff inside docker
        and start like
            docker run --rm name -u url
This commit is contained in:
Korjavin Ivan
2017-12-13 13:06:56 +01:00
parent 2b199b3de0
commit 59747f0bd1

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LC_ALL=C.UTF-8 LANGUAGE=en_US.UTF-8
RUN apt-get update
RUN apt-get -y install perl cpanminus build-essential
COPY src /src
RUN ["cpanm", "Mozilla::CA"]
RUN ["cpanm", "LWP::UserAgent"]
RUN ["cpanm", "HTTP::Cookies"]
RUN ["cpanm", "HTML::Entities"]
RUN ["cpanm", "MP3::Tag"]
RUN ["cpanm", "Getopt::Long::Descriptive"]
RUN apt-get -y install libssl-dev
RUN ["cpanm", "--force","LWP::Protocol::https"]
ENTRYPOINT [ "/src/ya.pl" ]