13 lines
283 B
Bash
Executable File
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
|