You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
531 B
23 lines
531 B
FROM python:3.9.17-slim
|
|
|
|
# https://pypi.org/project/yt-dlp/
|
|
ARG YT_DLP_VERSION=2023.6.22
|
|
|
|
RUN groupadd -g 1337 python && \
|
|
useradd -r -u 1337 -g python --home-dir /srv python
|
|
|
|
RUN chown -R python:python /srv
|
|
|
|
RUN mkdir /export && chown python:python /export
|
|
|
|
COPY entrypoint.sh /srv/entrypoint.sh
|
|
RUN chown python:python /srv/entrypoint.sh
|
|
RUN chmod +x /srv/entrypoint.sh
|
|
|
|
USER python
|
|
|
|
WORKDIR /srv/youtube-dlp
|
|
|
|
RUN pip install --user --upgrade yt-dlp==${YT_DLP_VERSION}
|
|
|
|
ENTRYPOINT ["/srv/entrypoint.sh", "/export/batch.txt"]
|
|
|