FROM python:3.12.12 WORKDIR /app ENV PYTHONUNBUFFERED=1 ENV PORT=7860 COPY . . COPY example.config.json config.json RUN apt-get update -y \ && apt-get install -y chromium chromium-driver xvfb \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir -r requirements.txt RUN chmod +x /app/startup.sh EXPOSE 7860 CMD ["/app/startup.sh"]