minecraft-pi-reborn/debian/server/usr/bin/minecraft-pi-server

13 lines
283 B
Plaintext
Raw Normal View History

2020-10-10 23:02:13 +00:00
#!/bin/sh
set -e
2021-01-31 02:32:20 +00:00
# Prepare Environment
2020-10-10 23:02:13 +00:00
export MCPI_ROOT="${PWD}"
2021-02-09 03:52:39 +00:00
export USER_UID="$(id -u)"
export USER_GID="$(id -g)"
2020-10-10 23:02:13 +00:00
# Launch Minecraft
2021-01-31 02:32:20 +00:00
DOCKER_COMPOSE_YML='/usr/share/minecraft-pi/server/docker-compose.yml'
docker-compose -f "${DOCKER_COMPOSE_YML}" run --rm minecraft-pi-server