Skip to content

Commit

Permalink
build: copy in exact files required
Browse files Browse the repository at this point in the history
  • Loading branch information
boringcactus committed Nov 9, 2023
1 parent 21ae1a3 commit fe9fd14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ RUN mix local.hex --force
RUN mix local.rebar --force

WORKDIR /root
ADD . .
COPY ./mix.exs mix.exs
COPY ./mix.lock mix.lock
RUN mix deps.get --only prod
RUN mix deps.compile


# --- Build Elixir release ---
Expand All @@ -20,6 +22,10 @@ FROM elixir-builder as app-builder
ENV LANG=C.UTF-8 MIX_ENV=prod

WORKDIR /root
COPY ./assets assets
COPY ./config config
COPY ./lib lib
COPY ./priv priv
RUN mix compile
RUN mix assets.deploy
RUN mix phx.digest
Expand Down

0 comments on commit fe9fd14

Please sign in to comment.