mirror of
https://github.com/alfem/telegram-download-daemon.git
synced 2024-09-20 06:46:05 +08:00
Merge pull request #84 from CarlesLlobet/patch-1
Fix compatibility issues with ARM
This commit is contained in:
commit
9ff552e028
14
Dockerfile
14
Dockerfile
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue