minecraft-pi-docker/debian/server/usr/bin/minecraft-pi-server
2021-02-08 22:52:39 -05:00

13 lines
283 B
Bash
Executable File

#!/bin/sh
set -e
# Prepare Environment
export MCPI_ROOT="${PWD}"
export USER_UID="$(id -u)"
export USER_GID="$(id -g)"
# Launch Minecraft
DOCKER_COMPOSE_YML='/usr/share/minecraft-pi/server/docker-compose.yml'
docker-compose -f "${DOCKER_COMPOSE_YML}" run --rm minecraft-pi-server