aws / aws-codebuild-docker-images

Official AWS CodeBuild repository for managed Docker images http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html
Other
1.11k stars 973 forks source link

Fixed Docker build for ARM64 architecture on MacOS (M1/M2). #675

Open abdulwahid24 opened 11 months ago

abdulwahid24 commented 11 months ago

Issue #575

Description of changes:

Docker provides a build-time variable called BUILDARCH which automatically populates with the architecture (like amd64, arm64, etc.) when you use docker build or docker buildx build.

I utilized this variable to address the installation of some platform-specific tools. I trust this will be beneficial to the community.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.