When building in CircleCI using balena-cli v11.36.0 to deploy images some of the services are failing with “Exec format error” (similar to those outlined in building arm containers on x86). This topic is related to issues outlined in emulated-multi-container-build-fails.
balena deploy --emulated the services which are failing are those whose context and dockerfile paths are different from one another. The services which succeed are those which just define the build folder.
build: context: . dockerfile: ./services/controller/Dockerfile.template
The services which fail do not encounter the same issue when built using
balena build --emulated in the service folder.