forked from Ivasoft/docker-tvheadend
extract picons during build
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -1,5 +1,10 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
############## picons stage ##############
|
||||
# built by https://github.com/linuxserver/picons-builder
|
||||
FROM ghcr.io/linuxserver/picons-builder as piconsstage
|
||||
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
|
||||
############## build stage ##############
|
||||
|
||||
@@ -12,8 +17,9 @@ ARG TZ="Etc/UTC"
|
||||
ARG TVHEADEND_COMMIT
|
||||
ENV HOME="/config"
|
||||
|
||||
# copy patches
|
||||
# copy patches and picons
|
||||
COPY patches/ /tmp/patches/
|
||||
COPY --from=piconsstage /picons.tar.bz2 /picons.tar.bz2
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
@@ -211,10 +217,12 @@ RUN \
|
||||
make -j 2 && \
|
||||
make DESTDIR=/tmp/comskip-build install
|
||||
|
||||
############## picons stage ##############
|
||||
# built by https://github.com/linuxserver/picons-builder
|
||||
FROM ghcr.io/linuxserver/picons-builder as piconsstage
|
||||
|
||||
RUN \
|
||||
echo "***** extract picons ****" && \
|
||||
mkdir -p /picons && \
|
||||
tar xf \
|
||||
/picons.tar.bz2 -C \
|
||||
/picons
|
||||
|
||||
############## runtime stage ##############
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
|
||||
@@ -313,7 +321,7 @@ COPY --from=buildstage /tmp/tvheadend-build/usr/ /usr/
|
||||
COPY --from=buildstage /tmp/xmltv-build/usr/ /usr/
|
||||
COPY --from=buildstage /usr/local/share/man/ /usr/local/share/man/
|
||||
COPY --from=buildstage /usr/local/share/perl5/ /usr/local/share/perl5/
|
||||
COPY --from=piconsstage /picons.tar.bz2 /picons.tar.bz2
|
||||
COPY --from=buildstage /picons /picons
|
||||
COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
|
||||
Reference in New Issue
Block a user