forked from cardosofelipe/fast-next-template
Add clean-slate target to Makefile for removing containers and volumes
This commit is contained in:
6
Makefile
Normal file → Executable file
6
Makefile
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: dev prod down clean
|
.PHONY: dev prod down clean clean-slate
|
||||||
|
|
||||||
VERSION ?= latest
|
VERSION ?= latest
|
||||||
REGISTRY := gitea.pragmazest.com/cardosofelipe/app
|
REGISTRY := gitea.pragmazest.com/cardosofelipe/app
|
||||||
@@ -20,6 +20,10 @@ deploy:
|
|||||||
clean:
|
clean:
|
||||||
docker compose down -
|
docker compose down -
|
||||||
|
|
||||||
|
# WARNING! THIS REMOVES CONTAINERS AND VOLUMES AS WELL - DO NOT USE THIS UNLESS YOU WANT TO START OVER WITH DATA AND ALL
|
||||||
|
clean-slate:
|
||||||
|
docker compose down -v
|
||||||
|
|
||||||
push-images:
|
push-images:
|
||||||
docker build -t $(REGISTRY)/backend:$(VERSION) ./backend
|
docker build -t $(REGISTRY)/backend:$(VERSION) ./backend
|
||||||
docker build -t $(REGISTRY)/frontend:$(VERSION) ./frontend
|
docker build -t $(REGISTRY)/frontend:$(VERSION) ./frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user