From bcba718813f27859698f7be26da858797034a976 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 14 Apr 2024 10:52:14 +0200 Subject: [PATCH] Add ERL_FLAGS --- .github/workflows/docker-image.yml | 5 ++++- Dockerfile | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 26d5ed1..ca4a89d 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -53,4 +53,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha - cache-to: type=gha,mode=max \ No newline at end of file + cache-to: type=gha,mode=max + build-args: | + BUILD_METADATA=${{ steps.meta.outputs.json }} + ERL_FLAGS=+JPperf true \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 58838b8..84d4534 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,11 @@ RUN apk add --no-cache -U build-base git curl bash ca-certificates nodejs npm op ENV NODE_VERSION 16.20.0 ENV PRESENTATION_STORAGE_DIR /app/uploads +# custom ERL_FLAGS are passed for (public) multi-platform builds +# to fix qemu segfault, more info: https://github.com/erlang/otp/pull/6340 +ARG ERL_FLAGS +ENV ERL_FLAGS=$ERL_FLAGS + # Install nvm with node and npm # RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash \ # && . $HOME/.nvm/nvm.sh \