mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 09:26:16 +00:00
fix: add Dockerfile fallback for playwright on ARM
Update Dockerfile to gracefully handle playwright install failures on ARM architectures where playwright is not available via pip.
This commit is contained in:
committed by
Florian BEZANNIER
parent
d92a24464b
commit
21a42b6d60
+4
-3
@@ -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 via pip)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user