fixing arm64 image build

This commit is contained in:
LangChain4j 2023-12-24 22:27:02 +01:00 committed by GitHub
parent f8ef7caa75
commit 2a5f0d8ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
docker build --push --platform=linux/amd64 -f $DOCKERFILE_PATH -t ${IMAGE_NAME}_amd64 .
docker build --push --platform=linux/arm64 -f $DOCKERFILE_PATH -t ${IMAGE_NAME}_arm64 .
docker buildx build --push --platform=linux/amd64 -f $DOCKERFILE_PATH -t ${IMAGE_NAME}_amd64 .
docker buildx build --push --platform=linux/arm64 -f $DOCKERFILE_PATH -t ${IMAGE_NAME}_arm64 .
docker manifest create ${IMAGE_NAME} --amend ${IMAGE_NAME}_amd64 --amend ${IMAGE_NAME}_arm64
docker manifest push ${IMAGE_NAME}