Skip to content

Commit

Permalink
Try to fix file perms errors in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanjli committed Feb 28, 2024
1 parent 4ab19a1 commit 48c7c21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM nodered/node-red:3.1.5-18-minimal

WORKDIR /data
COPY package.json /data
COPY package-lock.json /data
RUN npm install --unsafe-perm --no-update-notifier --no-fund --omit=dev
COPY --chown=node-red:node-red package.json /data
COPY --chown=node-red:node-red package-lock.json /data
RUN ls -l && npm install --unsafe-perm --no-update-notifier --no-fund --omit=dev
WORKDIR /usr/src/node-red

COPY settings.js /data/settings.js
COPY flows.json /data/flows.json
COPY --chown=node-red:node-red settings.js /data/settings.js
COPY --chown=node-red:node-red flows.json /data/flows.json

2 changes: 1 addition & 1 deletion settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ module.exports = {
},
projects: {
/** To enable the Projects feature, set this value to true */
enabled: false,
enabled: process.env.PROJECTS || false,
workflow: {
/** Set the default projects workflow mode.
* - manual - you must manually commit changes
Expand Down

0 comments on commit 48c7c21

Please sign in to comment.