From 9fb70fc3c3102692c6658daca381398ccd01015f Mon Sep 17 00:00:00 2001 From: Ahmed Karaman <20889958+ahmedkrmn@users.noreply.github.com> Date: Wed, 9 Oct 2019 16:26:32 +0200 Subject: [PATCH] Use the same name/id for both the user and the group --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b25041db..b2db8b8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM node:10-alpine MAINTAINER OhMyForm -# Create a group and a user with name "ohmyformUser". -RUN addgroup -g 9999 ohmyformGroup && adduser -u 99999 -D -g ohmyformGroup ohmyformUser +# Create a group and a user with name "ohmyform". +RUN addgroup --gid 9999 ohmyform && adduser -D --uid 9999 -G ohmyform ohmyform # Install some needed packages RUN apk add --no-cache git python \ @@ -52,7 +52,7 @@ RUN npm install --only=production \ && grunt build # Change to non-root privilege -USER ohmyformUser +USER ohmyform # Run OhMyForm server CMD ["node", "server.js"]