mirror of
https://codeberg.org/demostf/sync.git
synced 2026-06-03 16:44:07 +02:00
add makefile and dockerfile
This commit is contained in:
parent
3edc7acf2d
commit
ee6583b8ab
2 changed files with 13 additions and 0 deletions
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
ADD target/x86_64-unknown-linux-musl/release/sync /
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
CMD ["/sync"]
|
||||||
7
Makefile
Normal file
7
Makefile
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
all: target/x86_64-unknown-linux-musl/release/sync
|
||||||
|
|
||||||
|
target/x86_64-unknown-linux-musl/release/sync: Cargo.toml src/main.rs
|
||||||
|
docker run --rm -it -v "$(CURDIR):/home/rust/src" ekidd/rust-musl-builder cargo build --release
|
||||||
|
|
||||||
|
docker: target/x86_64-unknown-linux-musl/release/sync Dockerfile
|
||||||
|
docker build -t demostf/sync-rs .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue