Skip to content

Commit

Permalink
fix qemu arm64 builds (#2879)
Browse files Browse the repository at this point in the history
* fix qemu arm64 builds

* unpin final image
  • Loading branch information
ruslandoga committed May 3, 2023
1 parent fecbc8b commit 885ccaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-public-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
cache-to: type=gha,mode=max
build-args: |
BUILD_METADATA=${{ steps.meta.outputs.json }}
ERL_FLAGS=+JPperf true
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ ENV MIX_ENV=prod
ENV NODE_ENV=production
ENV NODE_OPTIONS=--openssl-legacy-provider

# 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

RUN mkdir /app
WORKDIR /app

Expand Down Expand Up @@ -48,7 +53,7 @@ COPY rel rel
RUN mix release plausible

# Main Docker Image
FROM alpine:3.17.0@sha256:c0d488a800e4127c334ad20d61d7bc21b4097540327217dfab52262adc02380c
FROM alpine:3.17.0
LABEL maintainer="plausible.io <hello@plausible.io>"

ARG BUILD_METADATA={}
Expand Down

0 comments on commit 885ccaa

Please sign in to comment.