# ---- Base image FROM python:3.11-slim # ---- Set working directory WORKDIR /app # ---- Avoid warnings and set env for matplotlib ENV PYTHONUNBUFFERED=1 ENV MPLCONFIGDIR=/tmp/.matplotlib ENV DEBIAN_FRONTEND=noninteractive # ---- System dependencies RUN apt-get update && \ apt-get install -y --no-install-recommends \ build-essential \ wget \ git \ curl \ && apt-get clean && rm -rf /var/lib/apt/lists/* # ---- Copy requirements COPY requirements.txt . # ---- Install Python dependencies RUN pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir -r requirements.txt # ---- Copy app files COPY . . # ---- Expose Streamlit default port EXPOSE 8501 # ---- Command to run Streamlit app CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false"]