mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2024-11-15 12:44:34 +08:00
14 lines
482 B
Docker
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"]
|