Skip to content

Commit

Permalink
Fetch cargo deps earlier during container build
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Oct 18, 2023
1 parent f021d31 commit 420a999
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ RUN apk upgrade && \
mix local.rebar --force && \
mix local.hex --force

COPY native native/
RUN cd native/vt_nif && cargo build -r

COPY mix.* ./
RUN mix do deps.get --only prod, deps.compile

Expand All @@ -37,7 +40,6 @@ RUN mix phx.digest
COPY config/*.exs config/
COPY lib lib/
COPY priv priv/
COPY native native/

# recompile sentry with our source code
RUN mix deps.compile sentry --force
Expand Down

0 comments on commit 420a999

Please sign in to comment.