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}"]