| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install git (needed for transformers when downloading configs) | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # Copy all project files (model + app.py) | |
| COPY . . | |
| EXPOSE 8501 | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |