Browse Source

Add of make commands

Jérôme BUISINE 1 year ago
parent
commit
980b9b9975
2 changed files with 13 additions and 1 deletions
  1. 9 0
      Makefile
  2. 4 1
      README.md

+ 9 - 0
Makefile

@@ -36,4 +36,13 @@ remove:
 	@echo "App is now stopped and removed"
 	@echo "----------------------------------------------------------------"
 
+clean: remove
+	@echo "----------------------------------------------------------------"
+	@echo "Process to remove image"
+	@echo "----------------------------------------------------------------"
+	docker rmi djangowebexpe
+	@echo "----------------------------------------------------------------"
+	@echo "djangowebexpe image is now deleted"
+	@echo "----------------------------------------------------------------"
+
 deploy: build run

+ 4 - 1
README.md

@@ -50,7 +50,10 @@ make deploy
 
 Will run `build` and `run` commands at once.
 
-You also have `stop` and `remove` commands to stop and remove current generated docker instance.
+You also have `stop`, `remove`, `clean` commands:
+- `stop`: stop current container instance
+- `remove`: stop and remove container instance
+- `clean`: stop and remove container instance. Also remove docker image
 
 ## How to contribute ?