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"]