When using ECR as the source in AWS App Runner, the following Health check on port “XXXX” error occurred.

03-20-202207:18:52AM[AppRunner]Healthcheckonport'3000'failed.Serviceisrollingback.Checkyourconfiguredportnumber.Formoreinformation,readtheapplicationlogs.

Regarding the above, I checked the “Application logs” as follows.

The following was output.

execuserprocesscaused:execformaterror

Regarding the above, I found the following Stack Overflow post.

https://stackoverflow.com/questions/67361936/exec-user-process-caused-exec-format-error-in-aws-fargate-service

Among the answers, the following was suggested.

dockerbuildxbuild-platform=linux/amd64-t<image-name>

After trying this, I was able to deploy successfully.

I hope this serves as a useful reference for those experiencing similar issues.