Skip to content

Commit

Permalink
Merge pull request #39 from mapuri/makefix
Browse files Browse the repository at this point in the history
don't add the user if it already exists in docker build
  • Loading branch information
mapuri committed Jan 15, 2016
2 parents 2e91f62 + 316bebd commit e7d4a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV GOPATH=/go
ARG user
ARG uid
# give permissions on gopath dir to the build user and then set it as current user
RUN useradd --uid ${uid} --password foo ${user}
RUN getent passwd ${user}; if [ "$?" != "0" ]; then useradd --uid ${uid} --password foo ${user}; fi
RUN chown -R ${uid}:${uid} ${GOPATH}
USER ${user}

Expand Down

0 comments on commit e7d4a37

Please sign in to comment.