From 494862e33022a141db789e35bd18f249c384ecca Mon Sep 17 00:00:00 2001 From: Felipe Lalanne Date: Fri, 8 Nov 2024 12:12:42 -0300 Subject: [PATCH] Lock NPM version in dockerfile --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b8e8e7..db5da6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,17 @@ FROM alpine:3.19 RUN apk add --update --no-cache \ build-base \ - nodejs \ - npm \ + nodejs~=20 \ dbus \ rust cargo \ curl +# Use NPM from 3.20 to get around +# https://github.com/npm/cli/issues/4028 +RUN apk add --update --no-cache \ + --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \ + npm + WORKDIR /usr/src/app COPY package*.json ./