From 41f05a31fa22f4c52729df36e71a20dfbe4f4493 Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Tue, 23 May 2023 22:21:07 -0400 Subject: [PATCH] [cluster/apps] Revert docker image to alpine --- Dockerfile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f3f1a4..15384a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,19 @@ -# trunk-ignore(hadolint/DL3007): Chainguard recommends latest -FROM cgr.dev/chainguard/static:latest +ARG ALPINE_VERSION="3.17" -ARG YTDLP_VERSION=2023.03.04 +FROM alpine:${ALPINE_VERSION} WORKDIR /app -# Install yt-dlp -ADD https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp /usr/local/bin/ - -# Install ffmpeg -COPY --from=mwader/static-ffmpeg:6.0 /ffmpeg /usr/local/bin/ -COPY --from=mwader/static-ffmpeg:6.0 /ffprobe /usr/local/bin/ +ARG YTDLP_VERSION="2023.03.04-r0" +ARG FFMPEG_VERSION="5.1.3-r0" +RUN apk add --no-cache yt-dlp==${YTDLP_VERSION} ffmpeg==${FFMPEG_VERSION} COPY ytdl-web ./ EXPOSE 8080 ENV YTDL_HTTP_PORT=8080 \ - YTDL_HTTP_LISTEN=0.0.0.0 + YTDL_HTTP_LISTEN=0.0.0.0 \ + YTDL_BINARYPATH=/usr/bin/yt-dlp ENTRYPOINT [ "./ytdl-web" ] \ No newline at end of file