ytdl-web/Dockerfile

19 lines
316 B
Docker
Raw Normal View History

2023-07-12 19:22:33 -04:00
ARG ALPINE_VERSION="3.18"
2023-04-14 11:58:32 -04:00
FROM alpine:${ALPINE_VERSION}
2023-05-23 21:59:03 -04:00
2023-04-14 11:58:32 -04:00
WORKDIR /app
# hadolint ignore=DL3018
RUN apk add --no-cache yt-dlp ffmpeg
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-07-12 19:16:28 -04:00
YTDL_BINARYPATH=/usr/bin/yt-dlp \
YTDL_CONFIGDIR=/config
ENTRYPOINT [ "./ytdl-web" ]