From cbac71af2150f87998a177038258f0d4656412cb Mon Sep 17 00:00:00 2001 From: valkyrie_pilot Date: Sat, 22 Jun 2024 01:43:41 -0600 Subject: [PATCH] Include llvmtargetarch in final output --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b737eb8..0f6fd57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ ARG LLVMTARGETARCH FROM --platform=${BUILDPLATFORM} ghcr.io/randomairborne/cross-cargo-${LLVMTARGETARCH}:latest AS builder - ARG LLVMTARGETARCH WORKDIR /build @@ -10,6 +9,7 @@ COPY . . RUN cargo build --release --target ${LLVMTARGETARCH}-unknown-linux-musl FROM scratch +ARG LLVMTARGETARCH COPY --from=builder /build/target/${LLVMTARGETARCH}-unknown-linux-musl/release/giveip /usr/bin/giveip EXPOSE 8080