Add clean-slate target to Makefile for removing containers and volumes

This commit is contained in:
2025-11-02 04:36:35 +01:00
parent e25b010b57
commit f354ec610b

6
Makefile Normal file → Executable file
View File

@@ -1,4 +1,4 @@
.PHONY: dev prod down clean
.PHONY: dev prod down clean clean-slate
VERSION ?= latest
REGISTRY := gitea.pragmazest.com/cardosofelipe/app
@@ -20,6 +20,10 @@ deploy:
clean:
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:
docker build -t $(REGISTRY)/backend:$(VERSION) ./backend
docker build -t $(REGISTRY)/frontend:$(VERSION) ./frontend