Download Dockerfile from 000x/sinhala: direct link, hf CLI and curl.
- Browser
- Download file 728 Bytes
-
https://huggingface.co/spaces/000x/sinhala/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/000x/sinhala/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/000x/sinhala/resolve/main/Dockerfile
728 Bytes
| 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"] |