ytdl-web/Dockerfile

19 lines
336 B
Docker

ARG ALPINE_VERSION="3.18"
FROM alpine:${ALPINE_VERSION}
WORKDIR /app
ARG YTDLP_VERSION="2023.07.06-r0"
RUN apk add --no-cache yt-dlp==${YTDLP_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" ]