There's already a nice docker setup for this, but I've been using this in kubernetes pretty nicely as a cronjob.
13 lines
308 B
Text
13 lines
308 B
Text
FROM python:alpine
|
|
|
|
# Install required non-python dependencies.
|
|
# Just using the built-in ffmpeg for ease of creation.
|
|
RUN apk add --no-cache ffmpeg aria2
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
pip install ytdl-sub
|
|
|
|
VOLUME /config
|
|
VOLUME /media
|
|
# Default to a non-root user after build.
|
|
USER nobody
|