# Use Python 3.11 FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y \ build-essential \ git \ curl \ && rm -rf /var/lib/apt/lists/* # Copy all files from repo COPY . . # Upgrade pip RUN pip install --upgrade pip # Install dependencies RUN pip install --no-cache-dir -r requirements.txt EXPOSE 8501 # Optional healthcheck HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health # Run Streamlit CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]