telegram-download-daemon/Dockerfile

14 lines
345 B
Text
Raw Normal View History

FROM python:3.10.5 AS compile-image
2020-04-24 03:11:24 +08:00
RUN pip install --no-cache-dir telethon cryptg==0.2 pysocks
2020-04-24 03:11:24 +08:00
FROM python:3.10.5-slim AS run-image
COPY --from=compile-image /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
WORKDIR /app
COPY *.py ./
RUN chmod 777 /app/*.py
CMD [ "python3", "./telegram-download-daemon.py" ]