docker: explicitly set both user and group when running as unprivileged user.

This change amends eea99fe507.

https://docs.docker.com/engine/reference/builder/#user
  USER <user>[:<group>] or
  USER <UID>[:<GID>]

  The USER instruction sets the user name (or UID) and optionally the user group
  (or GID) to use when running the image and for any RUN, CMD and ENTRYPOINT
  instructions that follow it in the Dockerfile.
This commit is contained in:
muxator 2019-11-09 00:23:55 +01:00
parent dd164decbd
commit bedcb8e975
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ RUN \
echo 'etherpad:x:65534:' > /etc/group && \
chown -R etherpad:etherpad ./
USER etherpad
USER etherpad:etherpad
EXPOSE 9001
CMD ["node", "node_modules/ep_etherpad-lite/node/server.js"]