Closed mauricioschneider closed 10 months ago
Besides changing the FROM
in the Dockerfile, it's possible to use a environment variable, export DOCKER_DEFAULT_PLATFORM=linux/amd64
.
After changing the first line of api/Dockerfile
to FROM --platform=linux/amd64 node:18-alpine AS base
, the deployment of the image to App Runner is successful.
The line above should be used in all Dockerfile
copies in api, web, and worker.
Good catch, fix coming.
When running
yarn ops deploy -a all
, the App Runner service for the API fails with the following logs:App Runner event logs
Application logs
I'm running letsgo on an Macbook Pro M3 Max, and according to this SO post, it's related to mismatching architecture used to build the docker image vs the one where the docker image will run. Here's a more in-depth explanation.