Closed tomciopp closed 3 months ago
Those errors are almost always because of Docker + QEMU. You are probably building the image on a host with a different architecture than the target architecture. You can try setting this flag:
# This flag disables JIT behaviour that causes a segfault under QEMU.
# Note that we set this runtime flag only during the build stage and
# it has no impact when running the final image. See [1] for more
# information.
#
# [1]: https://github.com/erlang/otp/pull/6340
ENV ERL_FLAGS="+JMsingle true"
Otherwise, make sure you build the image on the same machine/architecture you are deploying to.
@josevalim That did it! You're a life saver.
ELIXIR_VERSION=1.17.2 OTP_VERSION=26.2.5.2 DEBIAN_VERSION=bookworm-20240812-slim
BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
When building the docker image locally I get the following error:
I've never had an issue before when compiling locally, not quite sure why this error is occurring. If you need any more info I will grab it for you. The issue persists if I run the build without a cache.