Skip to content

Commit 5215902

Browse files
ddx-checkpointclaude
andcommitted
fix(docker): install Node.js LTS from NodeSource in attempt-runner
Replace the Debian-distro nodejs/npm packages with the NodeSource LTS setup script (adds gnupg for the apt key) so the attempt-runner image ships a current Node/npm instead of the stale distro version. Verify versions at build time. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 56da661 commit 5215902

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docker/attempt-runner/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2323
curl \
2424
git \
2525
git-lfs \
26+
gnupg \
2627
jq \
2728
make \
28-
nodejs \
29-
npm \
3029
openssh-client \
3130
patch \
3231
procps \
@@ -38,8 +37,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3837
xz-utils \
3938
zip \
4039
zstd \
40+
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
41+
&& apt-get install -y --no-install-recommends nodejs \
4142
&& git lfs install --system \
42-
&& rm -rf /var/lib/apt/lists/*
43+
&& rm -rf /var/lib/apt/lists/* \
44+
&& node --version \
45+
&& npm --version
4346

4447
RUN set -eux; \
4548
case "$(dpkg --print-architecture)" in \

0 commit comments

Comments
 (0)