7 lines
388 B
Bash
Executable File
7 lines
388 B
Bash
Executable File
#!/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 "$@"
|