lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.44 vs lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.45
- old
+ new
@@ -5,14 +5,14 @@
# - envs
ARG DOCKER_GID
ARG USER_UID
ARG USER_NAME
# - fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid
-RUN sed -i "s/999/99/" /etc/group
-# - creating group & user and changing the user
-RUN addgroup --gid "$DOCKER_GID" "docker"
-RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
-RUN adduser "$USER_NAME" "docker"
+# - Create group & user. Then add user to group
+RUN sed -i "s/999/99/" /etc/group && \
+ addgroup --gid "$DOCKER_GID" "docker" && \
+ adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" && \
+ adduser "$USER_NAME" "docker"
# We need the following:
# - git, because that gets us the git-http-backend CGI script
# - fcgiwrap, because that is how nginx does CGI
# - spawn-fcgi, to launch fcgiwrap and to create the unix socket