| FROM python:3.11-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all files from the repository into the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Streamlit runs on port 8501 by default | |
| EXPOSE 8501 | |
| # Launch Streamlit correctly | |
| ENTRYPOINT ["streamlit", "run"] | |
| CMD ["app.py", "--server.address=0.0.0.0", "--server.port=8501"] | |