Spaces:
Paused
Paused
| # Use official Python base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies: curl + pip requirements | |
| RUN apt-get update && \ | |
| apt-get install -y curl && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the app | |
| COPY . . | |
| # Run the application | |
| CMD ["python3", "app.py"] | |