ci: update dockerfile
This commit is contained in:
parent
71f10a0a9f
commit
f8e0ef1536
1 changed files with 3 additions and 1 deletions
|
@ -38,12 +38,14 @@ ENV MIX_ENV="prod"
|
|||
COPY mix.exs mix.lock ./
|
||||
RUN mix deps.get --only $MIX_ENV
|
||||
RUN mkdir config
|
||||
RUN mkdir rel
|
||||
RUN mix phx.gen.release
|
||||
|
||||
# copy compile-time config files before we compile dependencies
|
||||
# to ensure any relevant config change will trigger the dependencies
|
||||
# to be re-compiled.
|
||||
COPY config/config.exs config/${MIX_ENV}.exs config/
|
||||
RUN mix deps.compile
|
||||
RUN mix deps.compile --only $MIX_ENV
|
||||
|
||||
COPY priv priv
|
||||
|
||||
|
|
Loading…
Reference in a new issue