diff --git a/Makefile b/Makefile index b6fa4ae..2076062 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ commit = `git rev-parse HEAD` version = `git rev-parse --short HEAD` version = $(build_date) release-image = hub.didiyun.com/bearyinnovative/stalls:$(version) +pip-cache-dir = /data/cache/pip .PHONY: build-release-image build-release-image: @@ -12,5 +13,6 @@ build-release-image: --build-arg build_date=$(build_date) \ --build-arg version=$(version) \ --build-arg commit=$(commit) \ + -v $(pip-cache-dir):/root/.cache/pip \ -t $(release-image) \ -f Dockerfile