From 5bf2284e99da5d3291499ace8bb6745fe2e4406f 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:09:52 +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 246dfc1..c745790 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