From 0ce0780779ac399cc9750064e2d39942888f2829 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..98ecbcf 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/v3.20/main \ + npm + WORKDIR /usr/src/app COPY package*.json ./