backup push
This commit is contained in:
18
build-docker.sh
Executable file
18
build-docker.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user