diff options
| author | diogo464 <[email protected]> | 2025-07-20 18:59:09 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-07-20 18:59:09 +0100 |
| commit | f001c54c26f3f010a41ea107fd6fd5fbd0e55baa (patch) | |
| tree | 780e301cd31c36e1290e455a9b5b8e19e7394597 /Justfile | |
| parent | 059f767d00bbe7ca569d658b1cb14fcb17105bcd (diff) | |
added Justfile to replace build.sh
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}} | ||
