Download Dockerfile.render from vqh159/vidSub: direct link, hf CLI and curl.
- Browser
- Download file 728 Bytes
-
https://huggingface.co/spaces/vqh159/vidSub/resolve/main/Dockerfile.render
- Command line
-
hf download hf://spaces/vqh159/vidSub/Dockerfile.render
-
curl -L -o Dockerfile.render https://huggingface.co/spaces/vqh159/vidSub/resolve/main/Dockerfile.render
728 Bytes
| FROM python:3.12-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| VIDSUB_DISABLE_LOCAL_MODELS=1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg \ | |
| nodejs \ | |
| tesseract-ocr \ | |
| tesseract-ocr-eng \ | |
| tesseract-ocr-vie \ | |
| tesseract-ocr-jpn \ | |
| tesseract-ocr-kor \ | |
| tesseract-ocr-chi-sim \ | |
| fonts-dejavu-core \ | |
| fonts-noto-cjk \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements-render.txt ./ | |
| RUN pip install --no-cache-dir -r requirements-render.txt | |
| COPY vidsub.py cloud_app.py ./ | |
| COPY static ./static | |
| CMD ["sh", "-c", "uvicorn cloud_app:app --host 0.0.0.0 --port ${PORT:-10000}"] | |