Skip to content

Commit 10ce50c

Browse files
committed
enable docker buildkit cache inlining, use remote docker layer cache
1 parent d5b9d1c commit 10ce50c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ docker-build: ## Build Docker image
8585
test -e 'localstack/infra/stepfunctions/StepFunctionsLocal.jar' || make init
8686
# start build
8787
# --add-host: Fix for Centos host OS
88+
# --build-arg BUILDKIT_INLINE_CACHE=1: Instruct buildkit to inline the caching information into the image
89+
# --cache-from: Use the inlined caching information when building the image
8890
DOCKER_BUILDKIT=1 docker buildx build --pull --progress=plain \
91+
--cache-from $(TAG) --build-arg BUILDKIT_INLINE_CACHE=1 \
8992
--build-arg LOCALSTACK_BUILD_GIT_HASH=$(shell git rev-parse --short HEAD) \
9093
--build-arg=LOCALSTACK_BUILD_DATE=$(shell date -u +"%Y-%m-%d") \
9194
--add-host="localhost.localdomain:127.0.0.1" \

0 commit comments

Comments
 (0)