File size: 339 Bytes
02bb1da | 1 2 3 4 5 6 7 8 9 10 | FROM python:3.11-slim
RUN apt-get update && apt-get install -y wget gnupg && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir playwright playwright-stealth httpx fastapi uvicorn
RUN playwright install chromium
RUN playwright install-deps chromium
EXPOSE 7860
ENV PYTHONUNBUFFERED=1
CMD ["python", "main.py"] |