| # Use official Python image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements (we'll define it here) and app | |
| COPY app.py . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir streamlit pandas scikit-learn | |
| # Expose Streamlit port | |
| EXPOSE 8501 | |
| # Command to run the app | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |