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:
parent
74e439fbbc
commit
a80291223c
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue