diff --git a/Dockerfile b/Dockerfile index 0a30558..eb1064a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,8 +23,10 @@ RUN apt-get install -y --no-install-recommends $PYTHON_DEP curl && \ rm -rf /var/lib/apt/lists/* # Install Playwright and WebKit dependencies -RUN pip3 install --break-system-packages playwright && \ - playwright install --with-deps webkit +RUN pip3 install --break-system-packages playwright>=1.44.0 && \ + apt-get install -y --no-install-recommends libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2 && \ + rm -rf /var/lib/apt/lists/* && \ + playwright install --with-deps webkit || playwright install webkit COPY /docker_files/init.sh /init.sh CMD /init.sh diff --git a/pyproject.toml b/pyproject.toml index bdea63b..1bb77ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ argparse = "^1.4.0" geojson = "^2.5.0" reverse-geocode = "^1.4.1" androguard = "^4.1.2" -playwright = ">=1.40.0" +playwright = ">=1.44.0" pycryptodomex = "3.23.0" # Pin version as they introduce breaking changes in minor versions pydantic = "^1.9.0" "ruamel.yaml" = ">=0.15.0"