From 0637267ad58550432bac321226020dfcfd242d5f Mon Sep 17 00:00:00 2001 From: Bert Hausmans Date: Tue, 6 Jan 2026 02:36:40 +0100 Subject: [PATCH] Build for linux/amd64 platform --- scripts/build-and-push.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-and-push.sh b/scripts/build-and-push.sh index be2271f..85f25de 100755 --- a/scripts/build-and-push.sh +++ b/scripts/build-and-push.sh @@ -11,11 +11,12 @@ set -e REGISTRY="10.0.10.205:3000" IMAGE_NAME="bert.hausmans/questionnaire" TAG="${1:-latest}" +PLATFORM="linux/amd64" FULL_IMAGE="${REGISTRY}/${IMAGE_NAME}:${TAG}" -echo "🔨 Building image: ${FULL_IMAGE}" -docker build -t "${FULL_IMAGE}" . +echo "🔨 Building image for ${PLATFORM}: ${FULL_IMAGE}" +docker build --platform "${PLATFORM}" -t "${FULL_IMAGE}" . echo "📤 Pushing image to registry..." docker push "${FULL_IMAGE}" @@ -23,4 +24,3 @@ docker push "${FULL_IMAGE}" echo "✅ Done! Image pushed: ${FULL_IMAGE}" echo "" echo "📋 In Dockge: klik op 'Update' om de nieuwe image te pullen" -