Improve Image
This commit is contained in:
parent
4de452517a
commit
6ab07f04db
@ -3,6 +3,8 @@ services:
|
|||||||
minecraft-pi-server:
|
minecraft-pi-server:
|
||||||
image: 'thebrokenrail/minecraft-pi-reborn:server'
|
image: 'thebrokenrail/minecraft-pi-reborn:server'
|
||||||
network_mode: 'host'
|
network_mode: 'host'
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
volumes:
|
volumes:
|
||||||
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
|
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
|
||||||
- '${MCPI_ROOT}:/home/.minecraft-pi'
|
- '${MCPI_ROOT}:/home/.minecraft-pi'
|
||||||
|
@ -8,6 +8,8 @@ if [ ! "$(id -u)" = '0' ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check
|
||||||
|
if ! id user > /dev/null 2>&1; then
|
||||||
# Create User Groups
|
# Create User Groups
|
||||||
if [ -z "${USER_GID+x}" ]; then
|
if [ -z "${USER_GID+x}" ]; then
|
||||||
USER_GID='1000'
|
USER_GID='1000'
|
||||||
@ -27,6 +29,7 @@ if [ ! -z "${USER_OTHER_GIDS+x}" ]; then
|
|||||||
usermod -aG "${gid}" user
|
usermod -aG "${gid}" user
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Start
|
# Start
|
||||||
exec gosu "${USER_UID}" ./launcher
|
exec gosu "${USER_UID}" ./launcher
|
Loading…
Reference in New Issue
Block a user