From 43e6655a6f09851d63567e458e3fdaa1d71beba5 Mon Sep 17 00:00:00 2001 From: Edoardo Giaquinto Date: Tue, 1 Oct 2024 18:57:47 +0200 Subject: [PATCH] Fix build on non-x86_64 archs Signed-off-by: Edoardo Giaquinto --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 27a4053..bfb6a03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,10 +18,12 @@ RUN touch src/main.rs RUN cargo build --release +# Pick the executable file for the right architecture and system +RUN mv /volume/target/*-unknown-*-musl/release/notify_push /notify_push + FROM scratch -COPY --from=build /volume/target/x86_64-unknown-linux-musl/release/notify_push / +COPY --from=build /notify_push / EXPOSE 7867 CMD ["/notify_push"] -