# ───────────────────────────────────────────────────────────────────────────── FROM python:3.9-slim WORKDIR /app # Copy code + Streamlit config COPY . /app RUN mkdir -p /app/.streamlit # Install lightweight deps only # Install all of our deps RUN pip install --upgrade pip RUN pip install \ streamlit \ pandas \ scikit-learn \ textblob \ joblib \ xgboost \ torch \ transformers # Copy your config.toml into the container COPY .streamlit/config.toml /app/.streamlit/ ENV STREAMLIT_CONFIG_DIR=/app/.streamlit ENV STREAMLIT_HOME=/app/.streamlit EXPOSE 8501 CMD ["streamlit","run","app.py","--server.port=8501","--server.address=0.0.0.0"] # ─────────────────────────────────────────────────────────────────────────────