knowyt/docker/Makefile

22 lines
478 B
Makefile
Raw Normal View History

2022-03-14 21:42:07 +00:00
info:
@echo available targets:
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
2022-03-03 09:29:01 +00:00
build:
cp ../server/knowyt files/
podman build --tag knowyt:latest .
run:
podman run --rm -it -p 32039:32039 -v /home/settel/codes/go/knowyt/server/data/:/data --name knowyt knowyt:latest
stop:
podman stop knowyt
2022-03-09 08:34:55 +00:00
save:
rm -f knowyt-latest.tar
podman save knowyt:latest -o knowyt-latest.tar
cd .. && ls -lh docker/knowyt-latest.tar
2022-03-03 09:29:01 +00:00
clean:
2022-03-09 08:34:55 +00:00
rm -f files/knowyt knowyt-latest.tar