From d8e1b3a4fbfb5a2e5c33af98543931c990862657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhat=20G=C3=BCl=C3=A7i=C3=A7ek?= Date: Fri, 16 Jan 2026 15:45:24 +0100 Subject: [PATCH] [docker] Update multi-stage to build the binary on the build platform arch This should speed up building, as only the resulting image will use the target arch. --- source/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Dockerfile b/source/Dockerfile index 2789a4e..e35e54e 100644 --- a/source/Dockerfile +++ b/source/Dockerfile @@ -1,5 +1,5 @@ # Builder part for maven packaging. -FROM maven:3-eclipse-temurin-21 as builder +FROM --platform=$BUILDPLATFORM maven:3-eclipse-temurin-21 as builder WORKDIR /app