@ -35,9 +35,6 @@ COPY encrypt-flows-cred.sh /bin/encrypt-flows-cred.sh
|
||||
|
||||
COPY --from=CloneRepo /tmp/self_service/package.json /data/package.json
|
||||
|
||||
RUN cd /data; \
|
||||
npm install --unsafe-perm --no-update-notifier --no-fund --only=production
|
||||
|
||||
COPY --from=CloneRepo /tmp/self_service/flows_cred.json /data/flows_cred.json
|
||||
COPY --from=CloneRepo /tmp/self_service/flows.json /data/flows.json
|
||||
|
||||
@ -53,6 +50,9 @@ RUN chown node-red:node-red -R /data; \
|
||||
|
||||
USER node-red
|
||||
|
||||
RUN cd /data; \
|
||||
npm install --unsafe-perm --no-update-notifier --no-fund --only=production
|
||||
|
||||
HEALTHCHECK CMD curl http://localhost:1880/admin || exit 1
|
||||
|
||||
VOLUME [ "/data", "/usr/src/node-red" ]
|
||||
|
Reference in New Issue
Block a user