Fix build on non-x86_64 archs
Signed-off-by: Edoardo Giaquinto <edoardo@giaquo.com>
This commit is contained in:
Родитель
4a81d4eaa5
Коммит
43e6655a6f
|
@ -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"]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче