From f8be0ef11f28a4d99c0777e630bb9575578b050b Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Thu, 21 May 2026 17:13:23 +0200 Subject: [PATCH] fix: handle playwright install failure on ARM in Dockerfile Update Dockerfile to gracefully handle cases where playwright cannot be installed (e.g., on ARM architectures where it's not available via pip). This ensures Docker builds succeed on all platforms. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a30558..e130f12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,10 @@ RUN apt-get install -y --no-install-recommends $PYTHON_DEP curl && \ apt-get clean ; \ rm -rf /var/lib/apt/lists/* -# Install Playwright and WebKit dependencies -RUN pip3 install --break-system-packages playwright && \ - playwright install --with-deps webkit +# Install Playwright and WebKit dependencies (skip on ARM where not available) +RUN pip3 install --break-system-packages playwright 2>/dev/null && \ + playwright install --with-deps webkit 2>/dev/null || \ + echo "Playwright not available on this architecture, headless auth will use manual fallback" COPY /docker_files/init.sh /init.sh CMD /init.sh