From 54c30f87a3a786393789a6d41c638e4770a27b9a Mon Sep 17 00:00:00 2001 From: Harold Sun Date: Wed, 17 Aug 2022 23:36:02 +0800 Subject: [PATCH] Fix build command (#61) * fix github build issue * add missing TARGET_PLATFORM build argument --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 85b39418..da9ed184 100644 --- a/Makefile +++ b/Makefile @@ -45,8 +45,8 @@ build-mac: build-LambdaAdapterLayerX86: cp layer/* $(ARTIFACTS_DIR)/ - DOCKER_BUILDKIT=1 docker build --build-arg ARCH=x86_64 -o $(ARTIFACTS_DIR)/extensions . + DOCKER_BUILDKIT=1 docker build --build-arg TARGET_PLATFORM=linux/amd64 --build-arg ARCH=x86_64 -o $(ARTIFACTS_DIR)/extensions . build-LambdaAdapterLayerArm64: cp layer/* $(ARTIFACTS_DIR)/ - DOCKER_BUILDKIT=1 docker build --build-arg ARCH=aarch64 -o $(ARTIFACTS_DIR)/extensions . \ No newline at end of file + DOCKER_BUILDKIT=1 docker build --build-arg TARGET_PLATFORM=linux/arm64 --build-arg ARCH=aarch64 -o $(ARTIFACTS_DIR)/extensions . \ No newline at end of file