diff --git a/Makefile b/Makefile
index 825f1a16ffc5c9bdbdbf4e8ed2903bae4e57a5ac..cfc81bc72b10e3053c80977da5f22a4a3a92319d 100644
--- a/Makefile
+++ b/Makefile
@@ -625,7 +625,7 @@ $(REPO_ARCHIVE_DIR)/Release : $(REPO_DIST_DIR)/binary-$(call altarch,$(PRIMARY_A
 		>> "$(REPO_ARCHIVE_DIR)"/Release
 
 $(call ensure_mount,repo_offline_repo_json) : $(IMAGE_DIR)/offline_repo.json
-$(IMAGE_DIR)/offline_repo.json: | $(IMAGE_DIR)
+$(IMAGE_DIR)/offline_repo.json: $(CURDIR)/contrib/rootfs/offline_repo.json | $(IMAGE_DIR)
 	cp "$(CURDIR)/contrib/rootfs/offline_repo.json" "$(IMAGE_DIR)/"
 
 repo_clean: