Srt / Dockerfile
waigyi's picture
Update Dockerfile
ccf3cc7 verified
raw
history blame contribute delete
658 Bytes
FROM python:3.9-slim
# မြန်မာစာ Shaping α€™α€Ύα€”α€Ία€€α€”α€Ία€›α€”α€Ί libfribidi နှင့် libass တို့ကို α€žα€½α€„α€Ία€Έα€α€Όα€„α€Ία€Έ
RUN apt-get update && apt-get install -y \
ffmpeg \
exiftool \
libfontconfig1 \
libfribidi-dev \
libass-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
# font.ttf α€€α€­α€― System α€‘α€²α€žα€­α€―α€· α€žα€½α€„α€Ία€Έα€•α€±α€Έα€α€Όα€„α€Ία€Έ
RUN mkdir -p /usr/share/fonts/truetype/custom && \
cp font.ttf /usr/share/fonts/truetype/custom/ && \
fc-cache -f -v
RUN pip install --no-cache-dir pyrogram tgcrypto flask
CMD ["python", "main.py"]