fix(docker): fix Qemu segfaulting on arm64

Closes #1241 #1249

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-18 16:22:19 +02:00
parent 98470f3d8d
commit 8e3f90f713
3 changed files with 28 additions and 29 deletions

View File

@@ -12,6 +12,11 @@ RUN yarn install --network-timeout 100000 \
# Then, build the application binary
FROM elixir:1.14-alpine AS builder
# Fix qemu segfault on arm64
# See https://github.com/plausible/analytics/pull/2879 and https://github.com/erlang/otp/pull/6340
ARG ERL_FLAGS=""
ENV ERL_FLAGS=$ERL_FLAGS
RUN apk add --no-cache build-base git cmake
COPY mix.exs mix.lock ./