|
1 | 1 | # syntax=docker/dockerfile:1 |
2 | 2 |
|
3 | | -FROM ghcr.io/linuxserver/baseimage-alpine:3.22 |
| 3 | +FROM ghcr.io/linuxserver/baseimage-alpine:3.23 |
4 | 4 |
|
5 | 5 | ARG BUILD_DATE |
6 | 6 | ARG VERSION |
7 | 7 | ARG CHANGEDETECTION_RELEASE |
8 | 8 | LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" |
9 | 9 | LABEL maintainer="thespad" |
10 | 10 |
|
11 | | -ENV PYTHONUNBUFFERED=1 |
| 11 | +ENV PYTHONUNBUFFERED=1 \ |
| 12 | + CRYPTOGRAPHY_DONT_BUILD_RUST=1 |
12 | 13 |
|
13 | 14 | RUN \ |
14 | 15 | apk add --update --no-cache --virtual=build-dependencies \ |
@@ -46,18 +47,16 @@ RUN \ |
46 | 47 | python3 -m venv /lsiopy && \ |
47 | 48 | pip install -U --no-cache-dir \ |
48 | 49 | pip \ |
49 | | - setuptools \ |
50 | | - wheel && \ |
51 | | - pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.22/ -r /app/changedetection/requirements.txt && \ |
| 50 | + setuptools && \ |
| 51 | + pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ -r /app/changedetection/requirements.txt && \ |
52 | 52 | PLAYWRIGHT_PY_RELEASE=$(curl -sX GET "https://api.github.com/repos/microsoft/playwright-python/releases/latest" \ |
53 | 53 | | awk '/tag_name/{print $4;exit}' FS='[""]'); \ |
54 | 54 | git clone --depth 1 --branch "${PLAYWRIGHT_PY_RELEASE}" https://github.com/microsoft/playwright-python /tmp/playwright-python && \ |
55 | 55 | cd /tmp/playwright-python && \ |
56 | 56 | pip install -U --no-cache-dir . && \ |
57 | 57 | rm -f /lsiopy/lib/python3.12/site-packages/playwright/driver/node && \ |
58 | 58 | ln -s /usr/bin/node /lsiopy/lib/python3.12/site-packages/playwright/driver/node && \ |
59 | | - # Force UTF-8 encoding for browser steps to prevent exception |
60 | | - 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 && \ |
| 59 | + pybabel compile -d /app/changedetection/changedetectionio/translations && \ |
61 | 60 | printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ |
62 | 61 | echo "**** cleanup ****" && \ |
63 | 62 | apk del --purge \ |
|
0 commit comments