# =============================== # Base Image # =============================== FROM python:3.13.5-slim # =============================== # Set Working Directory # =============================== WORKDIR /app # =============================== # Install Dependencies # =============================== RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ && rm -rf /var/lib/apt/lists/* # =============================== # Copy Files # =============================== COPY requirements.txt ./ COPY . . # =============================== # Install Python Packages # =============================== RUN pip3 install --no-cache-dir -r requirements.txt # =============================== # Expose Port # =============================== EXPOSE 8501 # =============================== # Healthcheck (Optional but Recommended) # =============================== HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 # =============================== # Launch Streamlit App # =============================== ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]