From 412002d5db9038f9320d05c291b2b91065b7a668 Mon Sep 17 00:00:00 2001 From: Yu Yin Date: Tue, 24 Jun 2025 18:32:14 +0800 Subject: [PATCH] fix: correct multi-arch build (arm64 binary mismatch) Signed-off-by: Yu Yin --- server/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index bea55a3..fefbacd 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.1 AS builder +FROM --platform=$BUILDPLATFORM golang:1.23.1 AS builder WORKDIR /src @@ -10,6 +10,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compil RUN make build TARGET_ARCH=${TARGETARCH} -FROM debian:stable-slim +FROM --platform=$TARGETPLATFORM debian:stable-slim COPY --from=builder /src/build/ /apps/