This is an automated email from the ASF dual-hosted git repository.

imbajin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hugegraph.git


The following commit(s) were added to refs/heads/master by this push:
     new a80291223 perf(docker): build Java artifacts natively (#3092)
a80291223 is described below

commit a80291223cc696ecb8d6696e64fd57fd1c90b9f0
Author: imbajin <[email protected]>
AuthorDate: Sun Jul 12 21:36:10 2026 +0800

    perf(docker): build Java artifacts natively (#3092)
    
    - bind Maven build stages to BUILDPLATFORM
    - keep all runtime stages target-platform specific
    - avoid emulated Maven builds for ARM images
    - cover PD, Store, standalone, and HStore images
---
 hugegraph-pd/Dockerfile            | 2 +-
 hugegraph-server/Dockerfile        | 2 +-
 hugegraph-server/Dockerfile-hstore | 2 +-
 hugegraph-store/Dockerfile         | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hugegraph-pd/Dockerfile b/hugegraph-pd/Dockerfile
index 15d19c6f7..d55ac180a 100644
--- a/hugegraph-pd/Dockerfile
+++ b/hugegraph-pd/Dockerfile
@@ -18,7 +18,7 @@
 
 # Dockerfile for HugeGraph PD
 # 1st stage: build source code
-FROM maven:3.9.0-eclipse-temurin-11 AS build
+FROM --platform=$BUILDPLATFORM maven:3.9.0-eclipse-temurin-11 AS build
 
 WORKDIR /pkg
 
diff --git a/hugegraph-server/Dockerfile b/hugegraph-server/Dockerfile
index 068719318..2ca946e6b 100644
--- a/hugegraph-server/Dockerfile
+++ b/hugegraph-server/Dockerfile
@@ -18,7 +18,7 @@
 
 # Dockerfile for HugeGraph Server
 # 1st stage: build source code
-FROM maven:3.9.0-eclipse-temurin-11 AS build
+FROM --platform=$BUILDPLATFORM maven:3.9.0-eclipse-temurin-11 AS build
 
 WORKDIR /pkg
 
diff --git a/hugegraph-server/Dockerfile-hstore 
b/hugegraph-server/Dockerfile-hstore
index 6d3b82b5d..06d2d4b88 100644
--- a/hugegraph-server/Dockerfile-hstore
+++ b/hugegraph-server/Dockerfile-hstore
@@ -18,7 +18,7 @@
 
 # Dockerfile for HugeGraph Server (hstore backend)
 # 1st stage: build source code
-FROM maven:3.9.0-eclipse-temurin-11 AS build
+FROM --platform=$BUILDPLATFORM maven:3.9.0-eclipse-temurin-11 AS build
 
 WORKDIR /pkg
 
diff --git a/hugegraph-store/Dockerfile b/hugegraph-store/Dockerfile
index 43daa48e9..49d41f646 100644
--- a/hugegraph-store/Dockerfile
+++ b/hugegraph-store/Dockerfile
@@ -18,7 +18,7 @@
 
 # Dockerfile for HugeGraph Store
 # 1st stage: build source code
-FROM maven:3.9.0-eclipse-temurin-11 AS build
+FROM --platform=$BUILDPLATFORM maven:3.9.0-eclipse-temurin-11 AS build
 
 WORKDIR /pkg
 

Reply via email to