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
This commit is contained in:
imbajin 2026-07-12 21:36:10 +08:00 committed by GitHub
parent 74e439fbbc
commit a80291223c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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