[cluster/apps] Revert docker image to alpine

This commit is contained in:
Evan Fiordeliso 2023-05-23 22:21:07 -04:00
parent ac9e524a72
commit 41f05a31fa
1 changed files with 7 additions and 10 deletions

View File

@ -1,22 +1,19 @@
# trunk-ignore(hadolint/DL3007): Chainguard recommends latest ARG ALPINE_VERSION="3.17"
FROM cgr.dev/chainguard/static:latest
ARG YTDLP_VERSION=2023.03.04 FROM alpine:${ALPINE_VERSION}
WORKDIR /app WORKDIR /app
# Install yt-dlp ARG YTDLP_VERSION="2023.03.04-r0"
ADD https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp /usr/local/bin/ ARG FFMPEG_VERSION="5.1.3-r0"
RUN apk add --no-cache yt-dlp==${YTDLP_VERSION} ffmpeg==${FFMPEG_VERSION}
# Install ffmpeg
COPY --from=mwader/static-ffmpeg:6.0 /ffmpeg /usr/local/bin/
COPY --from=mwader/static-ffmpeg:6.0 /ffprobe /usr/local/bin/
COPY ytdl-web ./ COPY ytdl-web ./
EXPOSE 8080 EXPOSE 8080
ENV YTDL_HTTP_PORT=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" ] ENTRYPOINT [ "./ytdl-web" ]