Skip to content

Commit

Permalink
Lock NPM version in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pipex committed Nov 8, 2024
1 parent 8d27f7f commit 955f73f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
# - generate a binary to be published with the package to be used by node-pre-gyp
FROM alpine:3.19

# Use NPM from 3.18 to get around
# https://github.com/npm/cli/issues/4028
RUN apk add --update --no-cache \
--repository=http://dl-cdn.alpinelinux.org/alpine/v3.18/main \
npm

RUN npm install -g [email protected]

RUN apk add --update --no-cache \
build-base \
nodejs \
npm \
nodejs~=20 \
dbus \
rust cargo \
curl
Expand Down

0 comments on commit 955f73f

Please sign in to comment.