Spaces:
Runtime error
Runtime error
| # Use a minimal Python base image | |
| FROM python:3.10-slim | |
| # Avoid interactive prompts | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install only what’s required | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Copy files | |
| WORKDIR /app | |
| COPY app.py requirements.txt /app/ | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Run your app | |
| CMD ["python", "app.py"] | |