fix: Node.js ins ci-python-Image (Gitea JS-Actions)
Build ci-python image / build (push) Successful in 1m31s

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) <noreply@anthropic.com>
This commit is contained in:
sko
2026-08-05 09:50:32 +02:00
co-authored by Claude Opus 4.8
parent 426286d190
commit 5664fd3fc1
+6 -1
View File
@@ -21,11 +21,15 @@ ARG PYTEST_VERSION=9.1.1
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# 1) Selten ändernde Systemschicht zuerst -> Cache greift lange. # 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 \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
ca-certificates \ ca-certificates \
curl \ curl \
git \ git \
nodejs \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# 2) uv aus dem offiziellen, digest-gepinnten uv-Image kopieren. # 2) uv aus dem offiziellen, digest-gepinnten uv-Image kopieren.
@@ -55,6 +59,7 @@ RUN uv tool install "ruff==${RUFF_VERSION}" \
RUN python --version \ RUN python --version \
&& uv --version \ && uv --version \
&& ruff --version \ && ruff --version \
&& pytest --version && pytest --version \
&& node --version
CMD ["/bin/bash"] CMD ["/bin/bash"]