Skip to content

Commit

Permalink
First pass at fix for #326 (#327)
Browse files Browse the repository at this point in the history
Fix for #326
  • Loading branch information
hardillb authored Jul 25, 2022
1 parent acb78e9 commit db48d08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ RUN chown -R node-red:root /usr/src/node-red && \
/tmp/install_devtools.sh && \
rm -r /tmp/*

RUN npm config set cache /data/.npm --global

USER node-red

# Env variables
Expand Down
4 changes: 3 additions & 1 deletion docker-custom/Dockerfile.custom
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ RUN chown -R node-red:root /usr/src/node-red && \
/tmp/install_devtools.sh && \
rm -r /tmp/*

RUN npm config set cache /data/.npm --global

USER node-red

# Env variables
Expand All @@ -97,4 +99,4 @@ EXPOSE 1880
# HEALTHCHECK CMD curl http://localhost:1880/ || exit 1

# ENTRYPOINT ["npm", "start", "--cache", "/data/.npm", "--", "--userDir", "/data"]
ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.sh"]
2 changes: 2 additions & 0 deletions docker-custom/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ RUN chown -R node-red:root /usr/src/node-red && \
apt-get update && apt-get install -y build-essential python-dev python3 && \
rm -r /tmp/*

RUN npm config set cache /data/.npm --global

USER node-red

# Env variables
Expand Down

0 comments on commit db48d08

Please sign in to comment.