Files
terraria-docker/entrypoint.sh
Kenneth c6b9eee598
All checks were successful
Build and Push Image / build (push) Successful in 48s
first commit
2026-02-01 16:09:50 +00:00

13 lines
346 B
Bash

#!/usr/bin/env bash
set -euo pipefail
CONFIG_FILE="${CONFIG_FILE:-/config/serverconfig.txt}"
WORLD_PATH="${WORLD_PATH:-/worlds}"
# Terraria server is interactive if no -config is provided.
# We always pass a config by default so it boots unattended.
exec ./TerrariaServer.bin.x86_64 \
-config "${CONFIG_FILE}" \
-worldpath "${WORLD_PATH}"