{
"name": "node-red-project",
"description": "A Node-RED Project",
"version": "2.6.0",
"private": true,
"dependencies": {}
}
I am copying this package.json in the /data folder and installing using npm install in docker file like below. In my image i am also installing nr-launcher package. What i know is the nr-launcher override the package.json in the /data/package.json . then if i add dependency in this file it will get override. I am looking for a solution to add dependency package in my image and that will not be override by the nr-launcher,
COPY package.json /data
WORKDIR /data
RUN npm install
USER root
RUN mkdir -p /usr/local/ssl-certs
WORKDIR /usr/src/flowforge-nr-launcher
RUN chown -R node-red:node-red /data /usr/src/flowforge-nr-launcher
USER node-red
RUN npm install @flowfuse/nr-launcher@${BUILD_TAG}