ytdlbot/Dockerfile

15 lines
482 B
Docker
Raw Normal View History

2023-12-17 01:37:38 +08:00
FROM python:3.11 as builder
2021-05-03 19:26:47 +08:00
ADD requirements.txt /tmp/
2024-03-02 04:40:17 +08:00
RUN apt update && apt install -y git && pip3 install --user -r /tmp/requirements.txt && rm /tmp/requirements.txt
2021-05-04 11:30:22 +08:00
2023-12-17 01:37:38 +08:00
FROM python:3.11-slim
2021-12-29 16:57:06 +08:00
WORKDIR /ytdlbot/ytdlbot
2023-12-17 01:37:38 +08:00
ENV TZ=Europe/London
2021-08-20 23:48:56 +08:00
2023-12-17 01:37:38 +08:00
RUN apt update && apt install -y --no-install-recommends --no-install-suggests ffmpeg vnstat git aria2
2021-05-04 11:30:22 +08:00
COPY --from=builder /root/.local /usr/local
2021-08-14 17:57:42 +08:00
COPY . /ytdlbot
2021-05-03 19:26:47 +08:00
2022-02-11 20:11:17 +08:00
CMD ["/usr/local/bin/supervisord", "-c" ,"/ytdlbot/conf/supervisor_main.conf"]