Skip to content

Commit

Permalink
contrib: Dockerfile: use UID/GID 100 for gluon user
Browse files Browse the repository at this point in the history
To make the container behave the same regardless of the UIDs used
outside of the container, choose a UID that is unlikely to be used by
the user mounting their build directory the container. 100 should not
conflict with common defaults on Linux (min UID 1000) or MacOS X
(min UID 500). Conveniently, there is already a group "users" at GID
100, so creating a new group can be avoided.
  • Loading branch information
neocturne committed Sep 10, 2023
1 parent 9f90475 commit 4ada0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN mkdir /tmp/ec &&\
mv bin/ec-linux-amd64 /usr/local/bin/editorconfig-checker &&\
rm -rf /tmp/ec

RUN useradd -m -d /gluon gluon
RUN useradd -m -d /gluon -u 100 -g 100 gluon
USER gluon

VOLUME /gluon
Expand Down

0 comments on commit 4ada0c4

Please sign in to comment.