#!/bin/bash set -euo pipefail if command -v podman &> /dev/null; then CONTAINER_ENGINE="podman" elif command -v docker &> /dev/null; then CONTAINER_ENGINE="docker" else echo "Error: Neither Podman nor Docker is installed." >&2 exit 1 fi echo "Using $CONTAINER_ENGINE" "$CONTAINER_ENGINE" build --pull -t opencode-sandbox $@ . AUTH="opencode/auth.json" if [ ! -e "$AUTH" ]; then cp "$AUTH.template" "$AUTH" echo "=====================================================" echo "open $AUTH and insert your ai.psi.ch key" echo "=====================================================" fi