| # Use a minimal base image with Python | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all files from the local directory to the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"] | |