Spaces:
Sleeping
Sleeping
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # 🔥 Install System Dependencies + Burmese Fonts | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg git fonts-noto-core fonts-noto-cjk && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Setup User for Hugging Face | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| COPY --chown=user . . | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Port 7860 for Hugging Face | |
| CMD gunicorn --timeout 1200 --bind 0.0.0.0:7860 app:app | |