Use unprivileged "node" user in Dockerfile (#35)

* use unprivileged "node" user

* don't chown to node user, better to have no mutate perms
This commit is contained in:
Cole Gerdemann authored and GitHub committed 2023-07-28 06:01:34 -07:00
1 parent 802846ffdb
commit 0d98986871
1 file changed
+3 -1
+3 -1
View File
@@ -12,4 +12,6 @@ COPY . .
RUN ADAPTER=node npm run build
CMD ["npm", "run", "start"]
USER node
CMD ["npm", "run", "start"]