File size: 728 Bytes
1e2d939 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 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}"]
|