Thursday, March 8, 2018

dockerfile for get_iplayer on Alpine linux

as subject:

FROM alpine:latest

RUN apk update
RUN apk add perl curl git perl-utils perl-dev musl-dev make gcc wget perl-net-ssleay libxml2-dev
RUN curl -L http://cpanmin.us | perl - App::cpanminus
RUN cpanm HTML::Entities JSON::PP LWP LWP::Protocol::https Mojolicious XML::LibXML CGI
RUN git clone https://github.com/get-iplayer/get_iplayer.git
CMD ["/get_iplayer/get_iplayer.cgi", "--getiplayer=/get_iplayer/get_iplayer", "--listen=0.0.0.0", "--port=8080"]

No comments: