x86_64-alpine-get_iplayer/Dockerfile
Jonathan Ervine 72344cef4c Debug output
2020-12-14 14:34:58 +08:00

29 lines
1.2 KiB
Docker

FROM harbor.ervine.dev/public/x86_64/alpine:v3.12 AS builder
LABEL maintainer="Jonathan Ervine <docker@ervine.org>"
WORKDIR /root/
RUN apk --update --no-cache add git cmake make gcc g++ linux-headers jq
RUN git clone https://git.ervine.org/jonny/atomicparsley atomic && \
cd atomic && \
cmake . && cmake --build . --config Release && \
wget -qO - "https://api.github.com/repos/get-iplayer/get_iplayer/releases/latest" > /tmp/latest.json && \
echo get_iplayer release `jq -r .name /tmp/latest.json` && \
wget -qO - "`jq -r .tarball_url /tmp/latest.json`" | tar -zxf - && \
chmod 755 get-iplayer*/get_iplayer get-iplayer*/get_iplayer.cgi && \
echo "Working directory $PWD" && \
echo $PWD
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
RUN apk --update --no-cache add ffmpeg perl-cgi perl-mojolicious perl-lwp-protocol-https perl-xml-libxml logrotate su-exec tini
COPY --from=builder /root/atomic/AtomicParsley /usr/local/bin/AtomicParsley
COPY --from=builder /root/get-iplayer*/get_iplayer /usr/local/bin/get_iplayer
COPY --from=builder /root/get-iplayer*/get_iplayer.cgi /usr/local/bin/get_iplayer.cgi
COPY files/ /
ENTRYPOINT ["/sbin/tini", "--"]
CMD /start