Merge pull request #84 from CarlesLlobet/patch-1

Fix compatibility issues with ARM
This commit is contained in:
Alfonso E.M 2022-05-10 15:28:07 +02:00 committed by GitHub
commit 9ff552e028
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 14 deletions

View file

@ -1,16 +1,8 @@
FROM python:3.9-bullseye AS compile-image
FROM python:3 AS compile-image
RUN echo $TARGETPLATFORM
RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
which lsb_release \
lsb_release -a \
mv /usr/bin/lsb_release /usr/bin/lsb_release.bak \
pip install --no-cache-dir --user telethon; \
else \
pip install --no-cache-dir --user telethon cryptg; \
fi
RUN pip install --no-cache-dir --user telethon cryptg==0.2
FROM python:3.9-slim-bullseye AS run-image
FROM python:3-slim AS run-image
COPY --from=compile-image /root/.local /root/.local

View file

@ -2,8 +2,8 @@ version: '3.5'
services:
telegram-download-daemon:
build: .
image: telegram-download-daemon:latest
#build: .
image: alfem/telegram-download-daemon:latest
environment:
TELEGRAM_DAEMON_API_ID: "YOUR API ID HERE"
TELEGRAM_DAEMON_API_HASH: "YOUR API HASH HERE"
@ -17,4 +17,4 @@ services:
volumes:
downloads:
sessions:
sessions: