Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /app | |
| # System dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| libmagic1 \ | |
| poppler-utils \ | |
| tesseract-ocr \ | |
| libreoffice \ | |
| pandoc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # App code | |
| COPY . . | |
| # Streamlit / HF Spaces port | |
| EXPOSE 7860 | |
| # Healthcheck | |
| HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1 | |
| # 🚨 CMD MUST BE SINGLE LINE | |
| CMD ["streamlit","run","app.py","--server.port=7860","--server.address=0.0.0.0","--server.enableCORS=false","--server.enableXsrfProtection=false"] | |