build: lightweight busybox-based container build (#5285)

This commit is contained in:
outlook84
2025-07-13 14:37:20 +08:00
committed by GitHub
parent 1a5c83bcfe
commit 5c5942d995
4 changed files with 56 additions and 31 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
PORT=${FB_PORT:-$(cat /tmp/FB_CONFIG | sh /JSON.sh | grep '\["port"\]' | awk '{print $2}')}
ADDRESS=${FB_ADDRESS:-$(cat /tmp/FB_CONFIG | sh /JSON.sh | grep '\["address"\]' | awk '{print $2}' | sed 's/"//g')}
ADDRESS=${ADDRESS:-localhost}
wget -q --spider http://$ADDRESS:$PORT/health || exit 1