#!/usr/bin/env bash # build.sh — Build the backerup-website Docker image. # Usage: ./docker/build.sh [TAG] # TAG defaults to "backerup-website:latest" set -euo pipefail REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)" TAG="${1:-backerup-website:latest}" echo "==> Building image: $TAG" docker build \ --file "$REPO_ROOT/docker/Dockerfile" \ --tag "$TAG" \ "$REPO_ROOT" echo "==> Done. Image tagged as '$TAG'."