Skip to content

Commit 412002d

Browse files
Yu YinNimbus318
authored andcommitted
fix: correct multi-arch build (arm64 binary mismatch)
Signed-off-by: Yu Yin <yu.yin@dynamia.ai>
1 parent 0b59548 commit 412002d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23.1 AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.23.1 AS builder
22

33
WORKDIR /src
44

@@ -10,6 +10,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compil
1010

1111
RUN make build TARGET_ARCH=${TARGETARCH}
1212

13-
FROM debian:stable-slim
13+
FROM --platform=$TARGETPLATFORM debian:stable-slim
1414

1515
COPY --from=builder /src/build/ /apps/

0 commit comments

Comments
 (0)