Skip to content

Commit

Permalink
Fix build command (#61)
Browse files Browse the repository at this point in the history
* fix github build issue

* add missing TARGET_PLATFORM build argument
  • Loading branch information
bnusunny authored Aug 17, 2022
1 parent 1ea56b2 commit 54c30f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
DOCKER_BUILDKIT=1 docker build --build-arg TARGET_PLATFORM=linux/arm64 --build-arg ARCH=aarch64 -o $(ARTIFACTS_DIR)/extensions .

0 comments on commit 54c30f8

Please sign in to comment.