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 acfa961cd7
commit f4136d577e
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"]