I use this image to build a project with sqlx with sqlite. For linux/amd64 it just works as expected, however using linux/arm64 it is not. Could it be this line?
./configure --prefix="${PREFIX}" --host=x86_64-unknown-linux-musl --enable-threadsafe --disable-shared
Here is specifically uses the x86_64 host target (the other parts use DOCKER_TARGET_ARCH to resolve the target.