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:
1 parent
802846ffdb
commit
0d98986871
1 file changed
+3
-1
+3
-1
@@ -12,4 +12,6 @@ COPY . .
|
||||
|
||||
RUN ADAPTER=node npm run build
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
USER node
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
Reference in new issue
Block a user