Files
alpine-devcontainers/build.sh
2025-10-28 08:46:30 +01:00

18 lines
374 B
Bash
Executable File

#!/bin/sh
set -e
# Check if a name argument was provided
if [ -z "$1" ]; then
echo "Usage: $0 <name>"
exit 1
fi
containerfile="$1.Containerfile"
# Check if the containerfile exists
if [ ! -f "$containerfile" ]; then
echo "Error: Containerfile '$containerfile' not found."
exit 1
fi
podman build -t "git.plabble.org/maurice/devc-$1:test" -f $containerfile