added entrypoint to create yt-dlp.conf on container run if not exist

This commit is contained in:
2025-08-16 21:15:12 -04:00
parent f26222b4e7
commit 17cd735d1c
2 changed files with 15 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ RUN apk update && \
apk add --no-cache build-base ffmpeg && \
rm -rf /var/cache/apk/*
COPY requirements.txt requirements.txt
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN python3 -m pip install --no-cache-dir -r requirements.txt
COPY youdis.py youdis.py
COPY default-yt-dlp.conf /app/default-yt-dlp.conf
COPY create-ytdlp-conf.sh /app/create-ytdlp-conf.sh
ENTRYPOINT ["/app/create-ytdlp-conf.sh"]
CMD ["python3", "youdis.py"]