diff --git a/Makefile b/Makefile
index b0cbd472548e95fe2b6acf986a29e3d16c023cb3..885ec3d64985fd7ce42738276a0811664f3a82d7 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,11 @@ TAG=arkindex-backend
 
 .PHONY: build
 
-build:
+clean:
+	rm -rf *.egg-info build dist .eggs
+	find . -name '*.pyc' -exec rm {} \;
+
+build: clean
 	docker build $(ROOT_DIR) -t $(TAG):$(VERSION)
 
 publish-version: require-docker-auth