vidSub / Dockerfile.render
vqh159's picture
Deploy upgraded vidSub 2.0 on free Static Space + FFmpeg.wasm + Cloud/Local hybrid support
1e2d939 verified
Raw History Blame Contribute Delete
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}"]