FROM python:3.12-slim RUN apt-get update && apt-get install -y --no-install-recommends \ git \ chromium \ chromium-driver \ fonts-liberation \ libnss3 \ libxss1 \ libasound2 \ libatk-bridge2.0-0 \ libgtk-3-0 \ && rm -rf /var/lib/apt/lists/* ENV CHROME_PATH=/usr/bin/chromium ENV CHROMIUM_FLAGS="--disable-dev-shm-usage --no-sandbox --disable-gpu" WORKDIR /srv RUN git clone https://github.com/CloudWaddie/recaptcha.git . RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]