From 5664fd3fc10aad52f593bdf084201ab5d9222d32 Mon Sep 17 00:00:00 2001 From: Serge Koenigsmann Date: Wed, 5 Aug 2026 09:50:32 +0200 Subject: [PATCH] fix: Node.js ins ci-python-Image (Gitea JS-Actions) Gitea/act fuehrt JavaScript-Actions (actions/checkout@v4 u. a.) mit `node` IM Job-Container aus. Ohne node scheitert jeder uses:-Schritt mit "exec: node: not found" (so lief der naechtliche Export-Cron rot). nodejs (debian bookworm, v18.20.4) in die apt-Schicht aufgenommen. Image 397 -> 489 MB. Co-Authored-By: Claude Opus 4.8 (1M context) --- python/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/Dockerfile b/python/Dockerfile index ef51ea0..a494f08 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -21,11 +21,15 @@ ARG PYTEST_VERSION=9.1.1 SHELL ["/bin/bash", "-o", "pipefail", "-c"] # 1) Selten ändernde Systemschicht zuerst -> Cache greift lange. +# nodejs ist Pflicht, wenn das Image als Gitea-Actions-Job-Container dient: +# JavaScript-Actions (actions/checkout u. a.) werden von act mit `node` IM +# Container ausgeführt. Ohne node -> "exec: node: not found" (Recherche §3). RUN apt-get update \ && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ git \ + nodejs \ && rm -rf /var/lib/apt/lists/* # 2) uv aus dem offiziellen, digest-gepinnten uv-Image kopieren. @@ -55,6 +59,7 @@ RUN uv tool install "ruff==${RUFF_VERSION}" \ RUN python --version \ && uv --version \ && ruff --version \ - && pytest --version + && pytest --version \ + && node --version CMD ["/bin/bash"]