Files
2026-11-13 11:50:48 +01:00

18 lines
391 B
Bash
Executable File

#!/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}."