FROM python:3.11-slim # Install Chrome + deps with error tolerance RUN apt-get update && apt-get install -y \ wget \ gnupg \ unzip \ chromium \ chromium-driver \ libglib2.0-0 \ libnss3 \ libfontconfig1 \ libxrender1 \ libxtst6 \ libxi6 \ libxss1 \ libasound2 \ libatk-bridge2.0-0 \ libgtk-3-0 \ libgbm1 \ fonts-liberation \ libappindicator3-1 \ libcurl4 \ xdg-utils \ || true \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . ENV STREAMLIT_SERVER_PORT=7860 ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 ENV STREAMLIT_SERVER_HEADLESS=true CMD ["streamlit", "run", "app.py"]