29 lines
930 B
Docker
29 lines
930 B
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 \
|
|
apk add git cmake make gcc gcc-c++
|
|
|
|
RUN git clone https://github.com/wez/atomicparsley atomic \
|
|
cd atomic \
|
|
cmake . && cmake --build . --config Release
|
|
|
|
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
|
|
|
|
COPY --from=builder /root/atomic/AtomicParsley /usr/local/bin/AtomicParsley
|
|
RUN 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 - && \
|
|
cd get-iplayer* && \
|
|
install -m 755 -t /usr/local/bin ./get_iplayer ./get_iplayer.cgi && \
|
|
cd / && \
|
|
rm -rf get-iplayer* && \
|
|
rm /tmp/latest.json
|
|
|
|
COPY files/ /
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
CMD /start
|