diff options
Diffstat (limited to 'Justfile')
| -rw-r--r-- | Justfile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..75c6e6b --- /dev/null +++ b/Justfile | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | image := 'cr.d464.sh/bonsai-web:latest' | ||
| 2 | |||
| 3 | _default: | ||
| 4 | just --list | ||
| 5 | |||
| 6 | start: stop | ||
| 7 | docker run --rm -itd --name bonsai-web -p 5000:5000 {{image}} | ||
| 8 | echo "container started on port 5000" | ||
| 9 | |||
| 10 | stop: | ||
| 11 | docker stop bonsai-web || true | ||
| 12 | |||
| 13 | build: | ||
| 14 | docker build -f Containerfile -t {{image}} . | ||
| 15 | |||
| 16 | push: build | ||
| 17 | docker push {{image}} | ||
