1
0
mirror of https://github.com/medigor/example-native-api-rs.git synced 2025-06-17 00:17:52 +02:00

add build scripts

This commit is contained in:
medigor
2023-12-10 20:07:47 +03:00
parent d74087af76
commit d5b9fb5af7
3 changed files with 28 additions and 1 deletions

10
build-with-docker-linux Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
if which podman>/dev/null;
then
PROGRAM=podman;
else
PROGRAM=docker;
fi
$PROGRAM run -it --rm -v $PWD:/project docker.io/library/rust:1-bullseye cargo build --manifest-path /project/Cargo.toml --release