FROM python:3.10-slim WORKDIR /app # libarchive-tools = bsdtar (reads RAR4/RAR5), mkvtoolnix = soft subtitles, ffmpeg = burned-in subtitles RUN apt-get update \ && apt-get install -y --no-install-recommends git ca-certificates mkvtoolnix ffmpeg fontconfig fonts-noto-core libarchive-tools \ && rm -rf /var/lib/apt/lists/* # Keeps non-ASCII (e.g. Sinhala) file names intact inside archives ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 RUN pip install --no-cache-dir \ fastapi "uvicorn[standard]" aiofiles httpx telethon cryptg \ huggingface_hub hf_transfer python-multipart cryptography py7zr rarfile COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENV PORT=7860 EXPOSE 7860 ENTRYPOINT ["/entrypoint.sh"]