From 1b20fa9d32646ba1b955a1cb39c41171c62ad175 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 13 May 2026 16:07:22 +0200 Subject: [PATCH] fix: enhance entrypoint diagnostics and ensure server binary is executable --- docker/entrypoint.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index b63b628..f15dd0a 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,7 +1,17 @@ #!/bin/sh set -e -echo "[$(date -Iseconds)] Checking dist directory contents:" -ls -la /app/dist/ +# Print diagnostic info +echo "[$(date -Iseconds)] Running as user: $(id)" +echo "[$(date -Iseconds)] Database file: $DATABASE_FILE" + +if [ -f "/app/main_server" ]; then + echo "[$(date -Iseconds)] main_server found, size: $(stat -c%s /app/main_server) bytes" + chmod +x /app/main_server +else + echo "[$(date -Iseconds)] ERROR: /app/main_server not found!" + exit 1 +fi + echo "[$(date -Iseconds)] Starting server..." -exec /app/main_server \ No newline at end of file +exec /app/main_server