From 5d42beba9253286793959c6782a7954de8a595d6 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 23 Jun 2017 13:19:35 -0700 Subject: [PATCH] make dockerfile more dockerflowy --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73d7bfb8..b4161a35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM node:8-alpine -RUN adduser -S app +RUN addgroup -S -g 10001 app && adduser -S -D -G app -u 10001 app COPY . /app RUN chown -R app /app USER app WORKDIR /app RUN mkdir static -RUN npm install +RUN npm install && npm cache clean --force ENV PORT=1443 EXPOSE $PORT