Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
ideaMarcos committed Jan 24, 2025
1 parent 9017c9c commit 97236dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ RUN mix compile

# Changes to config/runtime.exs don't require recompiling the code
COPY config/runtime.exs config/
RUN mix ecto.setup

COPY rel rel
RUN mix release --path ./build
RUN mix ecto.setup

# start a new build stage so that the final image will only contain
# the compiled release and other runtime necessities
Expand All @@ -88,7 +88,7 @@ ENV MIX_ENV="prod"

# Only copy the final release from the build stage
COPY --from=builder --chown=nobody:root /app/build ./
COPY --from=builder --chown=nobody:root /app/*.db ./bin
COPY --from=builder --chown=nobody:root /app/*.db* ./bin

USER nobody

Expand Down

0 comments on commit 97236dd

Please sign in to comment.