Files
main-web/build-docker.sh
2025-10-22 17:21:44 +02:00

18 lines
447 B
Bash
Executable File

#!/bin/sh
# Always run from the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
if ! docker info > /dev/null 2>&1; then
echo "Docker does not seem to be running. Please start Docker Desktop or the Docker daemon first."
exit 1
fi
echo "Building Docker image..."
docker build --platform linux/amd64,linux/arm64 -t mainweb-app .
if [ $? -ne 0 ]; then
echo "Docker build failed."
exit
fi