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 494862e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./
Expand Down

0 comments on commit 494862e

Please sign in to comment.