Spaces:
Sleeping
Sleeping
| # Use Python 3.11.7 | |
| FROM python:3.11.7-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # Install OS dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy dependency list | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy entire project | |
| COPY . . | |
| # Expose port required by HuggingFace | |
| EXPOSE 7860 | |
| # Run Flask app on 0.0.0.0:7860 (HF requirement) | |
| CMD ["python", "app.py"] | |