From 50a25d5ac8306d38831c6c3754be6bc4873d8f77 Mon Sep 17 00:00:00 2001 From: Gorden Chen Date: Fri, 9 May 2025 23:30:43 +0800 Subject: [PATCH] Update patchright in Dockerfile - Set ENV PLAYWRIGHT_BROWSERS_PATH=/ms-patchright to define custom browser install path for Patchright. - Replaced Playwright installation commands with Patchright equivalents: RUN patchright install --with-deps chromium RUN patchright install-deps --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b6d39f..6a7b616 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,10 +57,10 @@ WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -# Install Playwright and browsers with system dependencies -ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright -RUN playwright install --with-deps chromium -RUN playwright install-deps +# Install patchright and browsers with system dependencies +ENV PLAYWRIGHT_BROWSERS_PATH=/ms-patchright +RUN patchright install --with-deps chromium +RUN patchright install-deps # Copy the application code COPY . .