[minecraft-server] Issue #9: explicitly adding user in container with UID=1000

This commit is contained in:
Geoff Bourne
2015-01-03 14:17:05 +00:00
parent 052f80d849
commit bc9afcd659
3 changed files with 7 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ RUN update-alternatives --install /usr/bin/js js /usr/bin/js24 100
RUN wget -O /usr/bin/jsawk https://github.com/micha/jsawk/raw/master/jsawk
RUN chmod +x /usr/bin/jsawk
RUN useradd -M -s /bin/false minecraft \
RUN useradd -M -s /bin/false --uid 1000 minecraft \
&& mkdir /data \
&& chown minecraft:minecraft /data