Explorar o código

docker: drop privileges to improve security

Bernadette Elena Hammerle %!s(int64=3) %!d(string=hai) anos
pai
achega
1d8990bcff
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Dockerfile

+ 2 - 0
Dockerfile

@@ -8,4 +8,6 @@ RUN npm install
 
 COPY . /app
 
+RUN mkdir /app/node_modules/.cache && chown nobody /app/node_modules/.cache
+USER nobody
 CMD ["npm", "start"]