tg2pdf/Dockerfile

17 lines
682 B
Docker
Raw Normal View History

2025-01-16 18:11:39 +02:00
FROM alpine:latest
RUN apk add --no-cache libreoffice
RUN apk add font-terminus font-noto font-noto-extra font-arabic-misc font-misc-cyrillic font-mutt-misc font-screen-cyrillic font-winitzki-cyrillic font-cronyx-cyrillic font-noto-arabic font-noto-armenian font-noto-cherokee font-noto-devanagari font-noto-ethiopic font-noto-georgian font-noto-hebrew font-noto-lao font-noto-malayalam font-noto-tamil font-noto-thaana font-noto-thai
RUN apk add --no-cache --virtual temporary python3-dev py3-pip gcc libc-dev && pip install --break-system-packages pyrogram TgCrypto && apk del temporary
2025-01-16 18:11:39 +02:00
WORKDIR /2pdf
COPY main.py /2pdf/
COPY 2pdf.session /2pdf/
CMD ["python", "main.py"]