Download Dockerfile from vqh159/vidSub: direct link, hf CLI and curl.
- Browser
- Download file 988 Bytes
-
https://huggingface.co/spaces/vqh159/vidSub/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vqh159/vidSub/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vqh159/vidSub/resolve/main/Dockerfile
988 Bytes
| FROM python:3.12-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=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/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| HF_HOME=/home/user/.cache/huggingface \ | |
| VIDSUB_MODELS_DIR=/home/user/.cache/vidsub_models \ | |
| PORT=7860 | |
| WORKDIR /app | |
| COPY --chown=user requirements.txt ./ | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user vidsub.py cloud_app.py ./ | |
| COPY --chown=user static ./static | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "cloud_app:app", "--host", "0.0.0.0", "--port", "7860"] | |