hello/Makefile

12 lines
202 B
Makefile

build: src/bin/*.rs Dockerfile
docker build -t my-rust-app .
run: build
docker rm -f rust-hello || true
docker run -d -it --rm --name rust-hello my-rust-app
exec:
docker exec -it rust-hello sh