| # Use full Python 3.9 base image | |
| FROM python:3.9 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app | |
| COPY app.py . | |
| # Expose Hugging Face default port | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Run Streamlit | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |