Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files123456789101123456137891011121316171415161917181920FROM python:3.11-slim
# System deps for Playwright ChromiumRUN apt-get update && apt-get install -y \ wget curl gnupg ca-certificates \ libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \ libcups2 libdrm2 libdbus-1-3 libxcb1 libxkbcommon0 libx11-6 \ libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 \ libgbm1 libpango-1.0-0 libcairo2 libasound2 libatspi2.0-0 \ && rm -rf /var/lib/apt/lists/*
ENV PYTHONUNBUFFERED=1 \ PLAYWRIGHT_BROWSERS_PATH=/ms-playwright WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \ wget curl && \ rm -rf /var/lib/apt/lists/* COPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtRUN playwright install chromium --with-deps
RUN playwright install --with-deps chromium COPY . .
EXPOSE 7860CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] Dockerfile+13-14