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
+2
@@ -12,4 +12,6 @@ COPY . .
|
|||||||
|
|
||||||
RUN ADAPTER=node npm run build
|
RUN ADAPTER=node npm run build
|
||||||
|
|
||||||
|
USER node
|
||||||
|
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
||||||
Reference in new issue
Block a user