lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.42 vs lib/smartcloud/grids/grid-runner/Dockerfile in smartcloud-0.0.43

- old
+ new

@@ -1,14 +1,19 @@ FROM docker:latest MAINTAINER Timeboard <hello@timeboard.me> # Setting up group and user +# - envs ARG DOCKER_GID ARG USER_UID ARG USER_NAME -# RUN addgroup --gid "$DOCKER_GID" "docker" +# - 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" +RUN adduser "$USER_NAME" "docker" +USER "$USER_NAME" # 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