Open wardzxzxc opened 2 years ago
hi, thanks for your feedback. we'll work on this.
this is an easy fix. We already support passing custom args to docker build
, although this feature is undocumented.
the remaining change would be to also support customizing which commands is executed (possibly via another env variable):
With the increased usage of the M1 chips in Macbooks, users might want to build Docker images for different architectures. This is especially so since the default images build by M1 Macbooks are in arm64 but most Cloud services are using a Linux based OS for their VMs.
Although currently the
export
command allows users to pass in build arguments, it's still not possible to usebuildx
and select a different architecture when building images. Instead, users will need to understand what's happening to theexport
command and mimic it manually so they can usebuildx
to build the Docker image.