Cannot build on arm, Zlib::BufError during assets:precompile

I have the same problem and when I turn off the exec part of discourse-animated-avatars the rebuild works.