Skip to content

Instantly share code, notes, and snippets.

@nrk
Created June 28, 2016 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nrk/64e6d2fa17397204c5b232214c7fbd51 to your computer and use it in GitHub Desktop.
Save nrk/64e6d2fa17397204c5b232214c7fbd51 to your computer and use it in GitHub Desktop.
Modify UID and GID of the "git" user in the official gogs/gogs Docker image.
FROM gogs/gogs:latest
RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && apk --no-cache add shadow
RUN usermod -u 1100 git && groupmod -g 1100 git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment