Multi-platform docker image build fails

Actually jason library had nothing to do with the problem. It was just the first library on my dependency list which failed with the error message.

Adding RUN ERL_FLAGS="+JMsingle true" MIX_ENV=prod mix compile fixed the issue for multi arch build, thank you!

I’m wondering if this flag is only used during the compilation step it has no negative effect on the runtime?