ytdlbot/Dockerfile
2024-03-01 21:45:05 +01:00

14 lines
482 B
Docker

FROM python:3.11 as builder
ADD requirements.txt /tmp/
RUN apt update && apt install -y git && pip3 install --user -r /tmp/requirements.txt && rm /tmp/requirements.txt
FROM python:3.11-slim
WORKDIR /ytdlbot/ytdlbot
ENV TZ=Europe/London
RUN apt update && apt install -y --no-install-recommends --no-install-suggests ffmpeg vnstat git aria2
COPY --from=builder /root/.local /usr/local
COPY . /ytdlbot
CMD ["/usr/local/bin/supervisord", "-c" ,"/ytdlbot/conf/supervisor_main.conf"]