Skip to content
Snippets Groups Projects
Unverified Commit 4ada0c4e authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

contrib: Dockerfile: use UID/GID 100 for gluon user

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.
parent 9f904754
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ RUN mkdir /tmp/ec &&\ ...@@ -30,7 +30,7 @@ RUN mkdir /tmp/ec &&\
mv bin/ec-linux-amd64 /usr/local/bin/editorconfig-checker &&\ mv bin/ec-linux-amd64 /usr/local/bin/editorconfig-checker &&\
rm -rf /tmp/ec rm -rf /tmp/ec
RUN useradd -m -d /gluon gluon RUN useradd -m -d /gluon -u 100 -g 100 gluon
USER gluon USER gluon
VOLUME /gluon VOLUME /gluon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment