Skip to content

Commit

Permalink
allow linux/amd64 docker builds on apple silicon macs
Browse files Browse the repository at this point in the history
  • Loading branch information
briankariuki committed Dec 5, 2024
1 parent 82b7449 commit 323e5b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ RUN mix local.hex --force && \
# set build ENV
ENV MIX_ENV="prod"

# allow builds on apple silicon macs
ENV ERL_AFLAGS="+JMsingle true"

# install mix dependencies
COPY mix.exs mix.lock ./
RUN mix deps.get --only $MIX_ENV
Expand Down

0 comments on commit 323e5b8

Please sign in to comment.