diff --git a/tools/podman.sh b/tools/podman.sh new file mode 100755 index 0000000..06dfda2 --- /dev/null +++ b/tools/podman.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# docker.sh equivalent using podman (same image, same mount, no emulation flag needed if native) +set -euo pipefail +ROOT=$(cd -P "$(dirname "$0")/.." >/dev/null && pwd -P) +podman image exists ninlight-build || podman build --platform linux/amd64 -t ninlight-build "$ROOT/docker" +exec podman run --rm --platform linux/amd64 -v "$ROOT":/work -w /work ninlight-build "$@"