Skip to content

Commit 97c02b4

Browse files
committed
install node
1 parent cf05322 commit 97c02b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@ RUN bash -c 'set -euo pipefail && \
99
install -m 755 /tmp/leeway /usr/local/bin/ && \
1010
rm /tmp/leeway.tar.gz /tmp/leeway'
1111

12+
# Install Node.js
13+
ENV NODE_MAJOR=20
14+
RUN mkdir -p /etc/apt/keyrings && \
15+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
16+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \
17+
install-packages nodejs && \
18+
rm -rf /usr/include/node/openssl/archs/{aix64-gcc-as,BSD-x86,BSD-x86_64,darwin64-arm64-cc,darwin64-x86_64-cc,darwin-i386-cc,linux32-s390x,linux64-loongarch64,linux64-mips64,linux64-riscv64,linux64-s390x,linux-armv4,linux-ppc64le,solaris64-x86_64-gcc,solaris-x86-gcc,VC-WIN32} && \
19+
rm -rf /usr/share/doc/nodejs && \
20+
rm -rf ./.npm/_cacache
21+
1222
# Install claude-code globally
1323
RUN npm i -g @anthropic-ai/claude-code

0 commit comments

Comments
 (0)