Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix: GH actions docker containers build form arm64 (#172)
Browse files Browse the repository at this point in the history
* change builder image to hexpm/elixir

* change to otp24

* bump elixir version to 1.15

* fix elixir version to 1.15.4

* add db migrations on docker image
  • Loading branch information
d-roak authored Sep 19, 2023
1 parent 448012b commit 8b3756a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM elixir:1.14.5-otp-25 as builder
FROM hexpm/elixir:1.15.4-erlang-24.3.4.13-debian-bullseye-20230612 AS builder

ENV MIX_ENV=prod

Expand All @@ -14,7 +14,7 @@ RUN mix compile
RUN mix release
RUN mix phx.gen.release

FROM elixir:1.14.5-otp-25
FROM elixir:1.15.4-otp-24
ENV MIX_ENV=prod

WORKDIR /explorer
Expand All @@ -23,4 +23,4 @@ COPY --from=builder /explorer/_build/$MIX_ENV/rel/starknet_explorer .

EXPOSE 4000

CMD ["/explorer/bin/starknet_explorer", "start"]
CMD ["sh", "-c", "/explorer/bin/starknet_explorer eval 'StarknetExplorer.Release.migrate' && /explorer/bin/starknet_explorer start"]

0 comments on commit 8b3756a

Please sign in to comment.