| # Use a standard Python image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application script | |
| COPY app.py . | |
| # Command to run the Streamlit app | |
| # This is the industry standard for HF Streamlit Docker deployments | |
| CMD ["streamlit", "run", "app.py"] | |