From 27b2aae970677fa1621112e971556a83873c9eaa Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Tue, 22 Jul 2025 23:32:57 +0200 Subject: [PATCH] use pip --break-system-packages instead of pipx ($PATH) instead of apt (old), #497 - 1.46GB`pipx install apprise` -> as is, need to adjust $PATH (now installed for root, note for #478) - 1.45GB `pip install apprise --break-system-packages` - 1.43GB `apt-get install apprise` -> only version 1.7.2 instead of 1.9.3 for pip/pipx --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab77c51..b86a4cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,8 @@ RUN apt-get update \ tini \ nodejs \ dos2unix \ - pipx \ + # use `pip install apprise --break-system-packages` instead of pipx (should be used locally, but we only need one pkg and pipx needs adjustment to $PATH) instead of apt-get's apprise (1.7.2 instead of 1.9.3) + pip \ # RUN npx patchright install-deps chromium # ^ installing deps manually instead saved ~130MB: && apt-get install -y --no-install-recommends \ @@ -56,7 +57,7 @@ RUN apt-get update \ /tmp/* \ /usr/share/doc/* \ && ln -s /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html \ - && pipx install apprise + && pip install apprise --break-system-packages WORKDIR /fgc COPY package*.json ./ @@ -98,9 +99,6 @@ ENV DEPTH=24 # Show browser instead of running headless ENV SHOW=1 -# apprise is installed via pipx, so it is in /root/.local/bin -ENV PATH="/root/.local/bin:$PATH" - # mega-linter (KICS, Trivy) complained about it missing - usually this checks some API endpoint, for a container that runs ~1min a healthcheck doesn't make that much sense since playwright has timeouts for everything. Could react to SIGUSR1 and check something in JS - for now we just check that node is running and noVNC is reachable... HEALTHCHECK --interval=5s --timeout=5s CMD pgrep node && curl --fail http://localhost:6080 || exit 1