Files
alpine-devcontainers/build.sh
2025-10-25 14:30:39 +02:00

18 lines
345 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 "devc-$1" -f $containerfile