Skip to content

Commit

Permalink
Merge pull request #527 from giaquo/fix-arch
Browse files Browse the repository at this point in the history
Fix build on non-x86_64 archs
  • Loading branch information
icewind1991 authored Oct 18, 2024
2 parents 4a81d4e + 43e6655 commit 1f49088
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 1f49088

Please sign in to comment.