diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index a6ced6f..325ba84 100755 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -184,8 +184,13 @@ ARGS="$ARGS -disableluarefresh" # Disable tcmalloc which causes issues in Docker environments # This is a known issue with Source engine games in containers +# Override the tcmalloc library with standard glibc malloc export LD_PRELOAD="" -export MALLOC_CHECK_=0 +unset LD_PRELOAD -# Start the server (using exec to replace shell process) -exec ./srcds_run $ARGS -norestart +# Use the included 32-bit glibc directly +export LD_LIBRARY_PATH="$SERVER_DIR/bin:$LD_LIBRARY_PATH" + +# Start the server directly (not via srcds_run to avoid script issues) +cd "$SERVER_DIR" +exec ./srcds_linux $ARGS -norestart -nohltv -condebug