ytdl-web/Dockerfile

23 lines
543 B
Docker

ARG YTDLP_VERSION="2023.03.04"
# trunk-ignore(hadolint/DL3007): Chainguard recommends latest
FROM cgr.dev/chainguard/static:latest
WORKDIR /app
# Install yt-dlp
ARG YTDLP_VERSION=2023.03.04
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/
COPY ytdl-web ./
EXPOSE 8080
ENV YTDL_HTTP_PORT=8080 \
YTDL_HTTP_LISTEN=0.0.0.0
ENTRYPOINT [ "./ytdl-web" ]