Skip to content

Commit 00f680e

Browse files
authored
Merge pull request #305 from FlowFuse/304-update-npm
Add npm update to all Dockerfiles
2 parents 44f6131 + 1a2ce12 commit 00f680e

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

file-server/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM node:20-alpine
22

33
ARG TAG
44

5+
RUN npm install -g npm
6+
57
WORKDIR /usr/src/flowforge-file-server
68
RUN mkdir app bin etc var
79
COPY package.json /usr/src/flowforge-file-server/app

flowforge-docker-local-dev/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
FROM node:16-alpine
1+
FROM node:20-alpine
22

33
ARG REGISTRY
4+
5+
RUN npm install -g npm
6+
47
RUN if [[ ! -z "$REGISTRY" ]] ; then npm config set @flowforge:registry "$REGISTRY"; fi
58

69
RUN apk add --no-cache --virtual build-base g++ make py3-pip sqlite-dev python2

flowforge-docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM node:20-alpine
22

33
RUN apk add --no-cache --virtual build-base g++ make py3-pip sqlite-dev python3 git
4+
RUN npm install -g npm
45

56
WORKDIR /usr/src/forge
67
RUN mkdir app bin etc var

node-red-container/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ FROM nodered/node-red:3.1.15-18
22

33
ARG BUILD_TAG=latest
44

5+
USER root
6+
RUN npm install -g npm
7+
RUN chown -R 1000:1000 "/data/.npm"
8+
9+
USER node-red
10+
511
COPY healthcheck.js /healthcheck.js
612

713
COPY package.json /data

0 commit comments

Comments
 (0)