#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" IMAGE="${IMAGE:-localhost/wiki-print:latest}" cd "$ROOT_DIR" if ! podman info >/dev/null 2>&1; then echo "Podman is not ready. Starting the Podman machine…" podman machine start fi echo "Building ${IMAGE}…" podman build --target production --tag "$IMAGE" . echo "Built ${IMAGE}."