Fix syntax error and change group name/id
This commit is contained in:
parent
6bfa3ac728
commit
c159943d97
@ -1,6 +1,9 @@
|
||||
FROM node:10-alpine
|
||||
MAINTAINER OhMyForm <admin@ohmyform.com>
|
||||
|
||||
# Create a group and a user with name "ohmyformUser".
|
||||
RUN addgroup -g 9999 ohmyformGroup && adduser -u 99999 -D -g ohmyformGroup ohmyformUser
|
||||
|
||||
# Install some needed packages
|
||||
RUN apk add --no-cache git python \
|
||||
&& rm -rf /tmp/* \
|
||||
@ -48,5 +51,8 @@ RUN npm install --only=production \
|
||||
&& bower install --allow-root -f \
|
||||
&& grunt build
|
||||
|
||||
# Change to non-root privilege
|
||||
USER ohmyformUser
|
||||
|
||||
# Run OhMyForm server
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user