Spaces:
Sleeping
Sleeping
| # Use a minimal base image with Python 3.11 installed | |
| FROM python:3.11-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy all files from the current directory to the container's /app directory | |
| COPY . . | |
| # Upgrade pip for compatibility | |
| RUN python -m pip install --upgrade pip | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Run the Streamlit app on port 8501, accessible externally | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"] | |