fix: Node.js ins ci-python-Image (Gitea JS-Actions)
Build ci-python image / build (push) Successful in 1m31s
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:
+6
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user