# Use a lightweight Python image FROM python:3.10-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Install system dependencies RUN apt-get update && apt-get install -y \ curl wget git \ libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 \ libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 \ libgbm1 libasound2 libpangocairo-1.0-0 libgtk-3-0 \ && apt-get clean && rm -rf /var/lib/apt/lists/* # Install Python packages COPY requirements.txt /app/requirements.txt WORKDIR /app RUN pip install --upgrade pip \ && pip install -r requirements.txt # Install Playwright and Chromium with dependencies RUN playwright install \ && playwright install --with-deps chromium # Expose the default Streamlit port EXPOSE 7860 # Copy all app files and set entry point COPY . /app CMD ["streamlit", "run", "app.py", "--server.port=7000", "--server.address=0.0.0.0"]