Spaces:
Sleeping
Sleeping
| # Use a lightweight Python base image | |
| FROM python:3.8-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Install dependencies | |
| WORKDIR /app | |
| COPY requirements.txt /app/ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app files | |
| COPY . /app | |
| # Expose the port Flask will run on | |
| EXPOSE 7860 | |
| # Run the Flask app | |
| CMD ["python", "app.py"] | |