2023-05-23 21:56:06 -04:00
|
|
|
ARG YTDLP_VERSION=2023.03.04
|
2023-04-15 00:08:30 -04:00
|
|
|
|
2023-05-23 21:52:00 -04:00
|
|
|
# trunk-ignore(hadolint/DL3007): Chainguard recommends latest
|
|
|
|
FROM cgr.dev/chainguard/static:latest
|
2023-04-14 11:58:32 -04:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-05-23 21:52:00 -04:00
|
|
|
# Install yt-dlp
|
2023-05-23 21:56:06 -04:00
|
|
|
ADD https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp /usr/local/bin/
|
2023-05-23 21:52:00 -04:00
|
|
|
|
|
|
|
# Install ffmpeg
|
|
|
|
COPY --from=mwader/static-ffmpeg:6.0 /ffmpeg /usr/local/bin/
|
|
|
|
COPY --from=mwader/static-ffmpeg:6.0 /ffprobe /usr/local/bin/
|
2023-04-14 11:58:32 -04:00
|
|
|
|
2023-04-15 19:54:42 -04:00
|
|
|
COPY ytdl-web ./
|
2023-04-14 11:58:32 -04:00
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2023-05-23 21:52:00 -04:00
|
|
|
ENV YTDL_HTTP_PORT=8080 \
|
|
|
|
YTDL_HTTP_LISTEN=0.0.0.0
|
2023-04-14 17:14:27 -04:00
|
|
|
|
2023-04-15 17:28:18 -04:00
|
|
|
ENTRYPOINT [ "./ytdl-web" ]
|