Skip to content

Commit

Permalink
chore: add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
shonenada committed Feb 25, 2019
1 parent e03b9da commit 3f10586
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 3f10586

Please sign in to comment.