Skip to content

Commit 141240c

Browse files
fix: enable multi-arch container builds
1 parent 32c91b5 commit 141240c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
# Builder stage - compile just-mcp from source
1010
# Need nightly for edition2024 support
11-
FROM --platform=${BUILDPLATFORM} docker.io/rustlang/rust:nightly-alpine AS builder
11+
FROM docker.io/rustlang/rust:nightly-alpine AS builder
12+
ARG TARGETARCH
1213

1314
# Install build dependencies
1415
# Note: musl provides static linking by default, no need for separate static libs
@@ -17,7 +18,6 @@ RUN apk add --no-cache \
1718
pkgconfig
1819

1920
# Set up cross-compilation targets based on target architecture
20-
ARG TARGETARCH
2121
RUN case "${TARGETARCH}" in \
2222
amd64) echo "x86_64-unknown-linux-musl" > /tmp/rust-target ;; \
2323
arm64) echo "aarch64-unknown-linux-musl" > /tmp/rust-target ;; \

0 commit comments

Comments
 (0)