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

12 lines
254 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-01-31 02:32:20 +00:00
export USER_UID="${UID}"
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