We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32c91b5 commit 141240cCopy full SHA for 141240c
Dockerfile
@@ -8,7 +8,8 @@
8
9
# Builder stage - compile just-mcp from source
10
# Need nightly for edition2024 support
11
-FROM --platform=${BUILDPLATFORM} docker.io/rustlang/rust:nightly-alpine AS builder
+FROM docker.io/rustlang/rust:nightly-alpine AS builder
12
+ARG TARGETARCH
13
14
# Install build dependencies
15
# Note: musl provides static linking by default, no need for separate static libs
@@ -17,7 +18,6 @@ RUN apk add --no-cache \
17
18
pkgconfig
19
20
# Set up cross-compilation targets based on target architecture
-ARG TARGETARCH
21
RUN case "${TARGETARCH}" in \
22
amd64) echo "x86_64-unknown-linux-musl" > /tmp/rust-target ;; \
23
arm64) echo "aarch64-unknown-linux-musl" > /tmp/rust-target ;; \
0 commit comments