2024-07-05 09:24:55 -04:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
ARG FFPLAYOUT_VERSION=0.24.0-alpha1
|
|
|
|
ARG SHARED_STORAGE=false
|
|
|
|
|
|
|
|
ENV DB=/db
|
|
|
|
ENV SHARED_STORAGE=${SHARED_STORAGE}
|
|
|
|
|
|
|
|
COPY --from=ffmpeg-build /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
|
|
|
|
COPY --from=ffmpeg-build /usr/local/bin/ffprobe /usr/local/bin/ffprobe
|
|
|
|
COPY README.md ffplayout-v${FFPLAYOUT_VERSION}_x86_64-unknown-linux-musl.tar.* /tmp/
|
2024-07-10 03:27:52 -04:00
|
|
|
COPY scripts/run.sh /
|
2024-07-05 09:24:55 -04:00
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
apk upgrade && \
|
|
|
|
apk add --no-cache sqlite font-dejavu
|
|
|
|
|
|
|
|
RUN [[ -f "/tmp/ffplayout-v${FFPLAYOUT_VERSION}_x86_64-unknown-linux-musl.tar.gz" ]] || \
|
|
|
|
wget -q "https://github.com/ffplayout/ffplayout/releases/download/v${FFPLAYOUT_VERSION}/ffplayout-v${FFPLAYOUT_VERSION}_x86_64-unknown-linux-musl.tar.gz" -P /tmp/ && \
|
|
|
|
cd /tmp && \
|
|
|
|
tar xf "ffplayout-v${FFPLAYOUT_VERSION}_x86_64-unknown-linux-musl.tar.gz" && \
|
|
|
|
cp ffplayout /usr/bin/ && \
|
|
|
|
rm -rf /tmp/* && \
|
|
|
|
mkdir ${DB}
|
|
|
|
|
|
|
|
EXPOSE 8787
|
|
|
|
|
2024-07-10 03:27:52 -04:00
|
|
|
CMD ["/run.sh"]
|