Merge pull request #527 from giaquo/fix-arch
Fix build on non-x86_64 archs
This commit is contained in:
Коммит
1f49088a14
|
@ -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"]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче