ytdl-web/Dockerfile

20 lines
388 B
Docker

ARG ALPINE_VERSION="3.18"
FROM alpine:${ALPINE_VERSION}
WORKDIR /app
ARG YTDLP_VERSION="2023.07.06"
ARG FFMPEG_VERSION="6.0-r15"
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 \
YTDL_CONFIGDIR=/config
ENTRYPOINT [ "./ytdl-web" ]