Move more to builder container
This commit is contained in:
parent
5180203cbb
commit
bafc62c306
21
Dockerfile
21
Dockerfile
@ -3,24 +3,23 @@ LABEL maintainer="Jonathan Ervine <docker@ervine.org>"
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
RUN apk --update --no-cache add git cmake make gcc g++ linux-headers
|
||||
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
|
||||
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_iplaye*
|
||||
|
||||
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
|
||||
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", "--"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user