FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 RUN apt-get update && apt-get install -y \ wget curl gnupg ca-certificates \ libnss3 libatk1.0-0 libatk-bridge2.0-0 \ libcups2 libdrm2 libxkbcommon0 \ libxcomposite1 libxdamage1 libxrandr2 \ libgbm1 libasound2 libpangocairo-1.0-0 \ libxshmfence1 libgtk-3-0 fonts-liberation \ libappindicator3-1 xdg-utils \ --no-install-recommends && rm -rf /var/lib/apt/lists/* # Python deps RUN pip install --no-cache-dir playwright streamlit # Install browser RUN playwright install --with-deps WORKDIR /app COPY . . EXPOSE 8501 CMD ["sh", "-c", "streamlit run app.py --server.address=0.0.0.0 --server.fileWatcherType=none"]