FROM python:3.9-slim WORKDIR /app # Install system packages RUN apt-get update && apt-get install -y \ build-essential \ curl \ software-properties-common \ git \ && rm -rf /var/lib/apt/lists/* # Copy the current directory into the container COPY requirements.txt . COPY . . # Install Python packages RUN pip install --no-cache-dir -r requirements.txt # Streamlit listens on this port by default EXPOSE 8501 # Optional health check HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 # Command to run your Streamlit app ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]