From 1abd330f87afe48fb5beace39c3bca485a5d2996 Mon Sep 17 00:00:00 2001 From: Chuck Date: Wed, 16 Mar 2022 22:28:00 +0000 Subject: [PATCH] Setup custom builder --- .devcontainer/cache/build-cache-image.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/cache/build-cache-image.sh b/.devcontainer/cache/build-cache-image.sh index 01566680167..451d1ab45a9 100755 --- a/.devcontainer/cache/build-cache-image.sh +++ b/.devcontainer/cache/build-cache-image.sh @@ -21,6 +21,7 @@ cd "${SCRIPT_PATH}/../.." echo "[$(date)] Starting image build and push..." export DOCKER_BUILDKIT=1 +docker buildx create --use --name vscode-dev-containers docker run --privileged --rm tonistiigi/binfmt --install all docker buildx build --push --platform linux/amd64,linux/arm64 -t ${CONTAINER_IMAGE_REPOSITORY}:"${TAG}" -f "${SCRIPT_PATH}/cache.Dockerfile" .