Faster container build
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,16 +1,8 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:18.04
|
||||||
ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LC_ALL=C.UTF-8 LANGUAGE=en_US.UTF-8
|
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 update
|
||||||
RUN apt-get -y install perl cpanminus build-essential
|
RUN apt-get -y install perl cpanminus make
|
||||||
COPY src /src
|
RUN apt-get -y install libwww-perl liblwp-protocol-https-perl libhttp-cookies-perl libhtml-parser-perl libmp3-tag-perl libgetopt-long-descriptive-perl libarchive-zip-perl
|
||||||
RUN ["cpanm", "Mozilla::CA"]
|
RUN ["cpanm", "Mozilla::CA"]
|
||||||
RUN ["cpanm", "LWP::UserAgent"]
|
COPY src /src
|
||||||
RUN ["cpanm", "HTTP::Cookies"]
|
|
||||||
RUN ["cpanm", "HTML::Entities"]
|
|
||||||
RUN ["cpanm", "Archive::Zip"]
|
|
||||||
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" ]
|
ENTRYPOINT [ "/src/ya.pl" ]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user