Spaces:
Runtime error
Runtime error
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Set work directory | |
| WORKDIR /app | |
| # Copy all files into the container | |
| COPY . /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Expose port for Hugging Face | |
| EXPOSE 7860 | |
| # Start the Flask app | |
| CMD ["python", "app.py"] | |