2021-04-23 16:29:54 +08:00
|
|
|
FROM python:3.6
|
2020-04-24 03:11:24 +08:00
|
|
|
|
2022-04-11 20:05:42 +08:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY *.py ./
|
2020-04-24 03:11:24 +08:00
|
|
|
|
2021-05-02 02:54:12 +08:00
|
|
|
RUN echo $TARGETPLATFORM
|
|
|
|
|
2021-05-02 04:17:17 +08:00
|
|
|
RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
|
2021-05-02 04:31:16 +08:00
|
|
|
which lsb_release \
|
|
|
|
lsb_release -a \
|
2021-05-02 04:25:18 +08:00
|
|
|
mv /usr/bin/lsb_release /usr/bin/lsb_release.bak \
|
2021-05-02 04:17:17 +08:00
|
|
|
pip install telethon; \
|
|
|
|
else \
|
|
|
|
pip install telethon cryptg; \
|
|
|
|
fi
|
2020-04-24 03:11:24 +08:00
|
|
|
|
2022-04-11 20:05:42 +08:00
|
|
|
CMD [ "python", "./telegram-download-daemon.py" ]
|