|
1 | 1 | # syntax=docker/dockerfile:1 |
2 | 2 |
|
3 | | -FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.22 |
| 3 | +FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.23 |
4 | 4 |
|
5 | 5 | ARG BUILD_DATE |
6 | 6 | ARG VERSION |
@@ -48,17 +48,17 @@ RUN \ |
48 | 48 | pip \ |
49 | 49 | setuptools \ |
50 | 50 | wheel && \ |
51 | | - pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.22/ -r /app/changedetection/requirements.txt && \ |
| 51 | + pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ -r /app/changedetection/requirements.txt && \ |
52 | 52 | echo "**** install playwright ****" && \ |
53 | | - PLAYWRIGHT_PY_RELEASE=$(curl -sX GET "https://api.github.com/repos/microsoft/playwright-python/releases/latest" \ |
54 | | - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ |
| 53 | + # PLAYWRIGHT_PY_RELEASE=$(curl -sX GET "https://api.github.com/repos/microsoft/playwright-python/releases/latest" \ |
| 54 | + # | awk '/tag_name/{print $4;exit}' FS='[""]'); \ |
| 55 | + PLAYWRIGHT_PY_RELEASE="release-1.56" && \ |
55 | 56 | git clone --depth 1 --branch "${PLAYWRIGHT_PY_RELEASE}" https://github.com/microsoft/playwright-python /tmp/playwright-python && \ |
56 | 57 | cd /tmp/playwright-python && \ |
57 | 58 | pip install -U --no-cache-dir . && \ |
58 | 59 | rm -f /lsiopy/lib/python3.12/site-packages/playwright/driver/node && \ |
59 | 60 | ln -s /usr/bin/node /lsiopy/lib/python3.12/site-packages/playwright/driver/node && \ |
60 | | - # Force UTF-8 encoding for browser steps to prevent exception |
61 | | - sed -i "s|xpath_element_js = importlib.resources.files(\"changedetectionio.content_fetchers.res\").joinpath('xpath_element_scraper.js').read_text()|xpath_element_js = importlib.resources.files(\"changedetectionio.content_fetchers.res\").joinpath('xpath_element_scraper.js').read_text(encoding='utf-8')|" /app/changedetection/changedetectionio/blueprint/browser_steps/browser_steps.py && \ |
| 61 | + pybabel compile -d /app/changedetection/changedetectionio/translations && \ |
62 | 62 | printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ |
63 | 63 | echo "**** cleanup ****" && \ |
64 | 64 | apk del --purge \ |
|
0 commit comments