| FROM python:3.10-slim | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| RUN chmod -R 777 /code | |
| # Direct Streamlit to run precisely on Hugging Face's container gateway port (7860) | |
| CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] | |