| FROM nodered/node-red |
| USER root |
| |
| # Copy package.json to the WORKDIR so npm builds all |
| # of your added nodes modules for Node-RED |
| COPY package.json . |
| COPY ./node-red-contrib-aas-connect ./node-red-contrib-aas-connect |
| RUN npm install --unsafe-perm --no-update-notifier --no-fund --only=production --quiet |
| RUN npm install ./node-red-contrib-aas-connect |
| |
| # Copy _your_ Node-RED project files into place |
| # NOTE: This will only work if you DO NOT later mount /data as an external volume. |
| # If you need to use an external volume for persistence then |
| # copy your settings and flows files to that volume instead. |
| COPY settings.js /data/settings.js |
| # COPY flows_cred.json /data/flows_cred.json |
| COPY flows.json /data/flows.json |