Spaces:
Sleeping
Sleeping
| # Use official lightweight Python image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first and install dependencies | |
| COPY requirements.txt /app/ | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . /app | |
| # Expose the port for HF Spaces | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["python", "app.py"] | |