Run as non-priviledged user in the docker image

This commit is contained in:
ophir 2021-01-10 17:02:23 +01:00
parent ec52bc9631
commit ce5ca084b9

View file

@ -1,6 +1,12 @@
FROM node:14-alpine
WORKDIR /opt/app
RUN chown -R 1000:1000 /opt/app
USER 1000:1000
COPY package.json package-lock.json ./
RUN npm ci --production
COPY . .