Allow the Playwright installation to fail

Excluded Playwright from requirements.txt to
prevent arm/v6 and arm/v7 builds from failing.
This commit is contained in:
Wee
2022-04-17 23:18:43 +07:00
parent d87a8cc661
commit f71545a4b0
2 changed files with 5 additions and 3 deletions
+5
View File
@@ -20,6 +20,11 @@ COPY requirements.txt /requirements.txt
RUN pip install --target=/dependencies -r /requirements.txt
# Playwright is an alternative to Selenium
# Excluded this package from requirements.txt to prevent arm/v6 and arm/v7 builds from failing
RUN pip install --target=/dependencies playwright~=1.20 \
|| echo "WARN: Failed to install Playwright. The application can still run, but the Playwright option will be disabled."
# Final image stage
FROM python:3.8-slim
-3
View File
@@ -34,6 +34,3 @@ lxml
# 3.141 was missing socksVersion, 3.150 was not in pypi, so we try 4.1.0
selenium ~= 4.1.0
# An alternative to Selenium
playwright ~= 1.20