| # Use official Python image | |
| FROM python:3.10 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements | |
| COPY requirements.txt /app/ | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all application files | |
| COPY . /app/ | |
| # Expose required port for Hugging Face | |
| EXPOSE 7860 | |
| # Command to run Flask app | |
| CMD ["python", "app.py"] | |