Add Dockerfile and build script for source stack image creation

This commit is contained in:
Guofang committed 2026-09-21 09:58:46 +08:00
1 parent 1170f8f353
commit d00a3b9544
4 files changed
+184

No files matched your search

Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -eu
IMAGE_NAME="${IMAGE_NAME:-test-source-stack}"
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
if ! command -v podman >/dev/null 2>&1; then
echo "Error: Podman is required." >&2
exit 1
fi
echo "Building image $IMAGE_NAME with podman ..."
exec podman build --network host --tag "$IMAGE_NAME" "$SCRIPT_DIR"