update justfile scripts for docker
This commit is contained in:
7
Justfile
7
Justfile
@@ -1,8 +1,11 @@
|
||||
dev:
|
||||
PODCASTS_DIRPATH=./podcasts go run .
|
||||
|
||||
build:
|
||||
docker build -t podcaster .
|
||||
build tag="latest":
|
||||
docker build -t git.zatch.ru/tsivinsky/podcaster:{{tag}} .
|
||||
|
||||
push tag="latest":
|
||||
docker push git.zatch.ru/tsivinsky/podcaster:{{tag}}
|
||||
|
||||
run:
|
||||
docker run -p 5000:5000 --name podcaster -e PODCASTS_DIRPATH=/podcasts -e DB_PATH=/db/sqlite.db -v ./db:/db -v ./podcasts:/podcasts podcaster:latest
|
||||
|
||||
Reference in New Issue
Block a user