Parcourir la source

Add of make commands

Jérôme BUISINE il y a 4 ans
Parent
commit
980b9b9975
2 fichiers modifiés avec 13 ajouts et 1 suppressions
  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 ?