Closed dave-shawley closed 1 year ago
[APPROVALNOTIFIER] This PR is APPROVED
Approval requirements bypassed by manually added approval.
This pull-request has been approved by: dave-shawley
The full list of commands accepted by this bot can be found here.
The pull request process is described here
The Docker Build Kit exports the target OS and architecture as build args so we can use them instead of assuming linux/amd64. The default values are set to
linux/amd64
in case you are building in a docker version that does not have build kit available. You may also need to setDOCKER_BUILDKIT=1
for it to exportTARGETOS
andTARGETARCH
correctly.I'm not sure what incantations are required in the Github actions to build on ARM as well as Intel but this should "just work" if you are building on an ARM CPU. This is a start to addressing #147 though additional CI work is required.
https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope