diff options
author | Chuck <clantz@microsoft.com> | 2022-03-17 01:28:00 +0300 |
---|---|---|
committer | Chuck <clantz@microsoft.com> | 2022-03-17 01:28:00 +0300 |
commit | 1abd330f87afe48fb5beace39c3bca485a5d2996 (patch) | |
tree | 6ef9560ffce7cb49ba3bd527a2785db4142a325b /.devcontainer | |
parent | a0c8560a80b3a94e33990e8cdb03a0ceb82493f5 (diff) |
Setup custom builder
Diffstat (limited to '.devcontainer')
-rwxr-xr-x | .devcontainer/cache/build-cache-image.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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" . |