first commit
All checks were successful
Build and Push Image / build (push) Successful in 48s

This commit is contained in:
2026-02-01 16:09:50 +00:00
commit c6b9eee598
4 changed files with 154 additions and 0 deletions

12
entrypoint.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/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}"