Skip to content

Commit 67e76f5

Browse files
committed
Fix Node installation (previous fix not working)
1 parent 3c67ae6 commit 67e76f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ ENV PATH="/usr/local/go/bin:${PATH}"
2929

3030
# Install Node.js (LTS)
3131
ARG NODE_VERSION=22.21.0
32-
RUN apt remove nodejs
32+
# remove built-in version to avoid the different path from interfering with new version one
33+
RUN apt remove -y nodejs
3334
RUN apt-get install -y -qq --no-install-recommends nodejs npm && \
3435
npm install -g n && n install ${NODE_VERSION}
3536

0 commit comments

Comments
 (0)