1
0
Fork 0
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:
Robin Appelman 2017-10-05 22:04:04 +02:00
commit ee6583b8ab
2 changed files with 13 additions and 0 deletions

6
Dockerfile Normal file
View file

@ -0,0 +1,6 @@
FROM scratch
ADD target/x86_64-unknown-linux-musl/release/sync /
EXPOSE 80
CMD ["/sync"]

7
Makefile Normal file
View 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 .