This commit is contained in:
Daniel Fichtinger 2025-07-13 23:45:36 -04:00
parent 8f8c1f7be6
commit 87bc863c6a
3 changed files with 33 additions and 2 deletions

View file

@ -2,10 +2,16 @@ name := 'git.ficd.sh/ficd/based-alpine'
# build the image
build arg="latest":
#!/bin/sh
cd {{arg}}
docker build -t {{name}}:{{arg}} .
# push the image
push arg="latest":
#!/bin/sh
cd {{arg}}
docker push {{name}}:{{arg}}
# run cmd in image
run arg="sh":
docker run --rm -it {{name}} {{arg}}
run arg="latest":
#!/bin/sh
cd {{arg}}
docker run --rm -it {{name}} bash