remove chown from CMD to allow image to run as an unprivileged user

This commit is contained in:
Simon Weald 2022-05-08 21:32:11 +01:00
parent 7b7d6a5fbd
commit d475499bb9
No known key found for this signature in database
GPG key ID: D5B6F367F8F057F0
2 changed files with 2 additions and 2 deletions

View file

@ -31,4 +31,4 @@ USER node
ENV NODE_ENV=production
ENV PASSWORD=flame_password
CMD ["sh", "-c", "chown -R node /app/data && node server.js"]
CMD ["node", "server.js"]

View file

@ -32,4 +32,4 @@ USER node
ENV NODE_ENV=production
ENV PASSWORD=flame_password
CMD ["sh", "-c", "chown -R node /app/data && node server.js"]
CMD ["node", "server.js"]