mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 22:02:28 +00:00
parent
b401873298
commit
94b037428e
2 changed files with 4 additions and 2 deletions
|
@ -29,8 +29,6 @@ RUN addgroup -g 1000 minecraft \
|
|||
|
||||
EXPOSE 25565 25575
|
||||
|
||||
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
|
||||
ARG ARCH=amd64
|
||||
|
||||
ARG EASY_ADD_VER=0.3.0
|
||||
|
|
4
start
4
start
|
@ -16,6 +16,10 @@ if [ $(id -u) = 0 ]; then
|
|||
chown -R minecraft:minecraft /data
|
||||
fi
|
||||
|
||||
if [[ ${SKIP_NSSWITCH_CONF^^} != TRUE ]]; then
|
||||
echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
fi
|
||||
|
||||
exec su-exec minecraft:minecraft /start-configuration $@
|
||||
else
|
||||
exec /start-configuration $@
|
||||
|
|
Loading…
Reference in a new issue