From ac5281004ee51076d002f31c1ea9508ea09e5046 Mon Sep 17 00:00:00 2001 From: herrmannplatz Date: Mon, 5 Mar 2018 21:16:22 +0100 Subject: [PATCH] fix(docker): run as node user --- generator/template/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/template/Dockerfile b/generator/template/Dockerfile index 6e081b4..1b536d5 100644 --- a/generator/template/Dockerfile +++ b/generator/template/Dockerfile @@ -2,8 +2,6 @@ FROM node:alpine EXPOSE 8080 -RUN apk add --no-cache nginx - WORKDIR /usr/src/app RUN npm install serve -g @@ -16,4 +14,6 @@ COPY . . RUN npm run build +USER node + CMD ["serve", "--single", "--port", "8080", "dist"]