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