Skip to content

Commit

Permalink
Fix build on non-x86_64 archs
Browse files Browse the repository at this point in the history
Signed-off-by: Edoardo Giaquinto <[email protected]>
  • Loading branch information
Edoardo Giaquinto committed Oct 2, 2024
1 parent 4a81d4e commit 43e6655
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 43e6655

Please sign in to comment.