ytdl-web/Dockerfile

19 lines
363 B
Docker

ARG ALPINE_VERSION="3.17"
FROM alpine:${ALPINE_VERSION}
WORKDIR /app
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_BINARYPATH=/usr/bin/yt-dlp
ENTRYPOINT [ "./ytdl-web" ]