ci: update dockerfile
Some checks failed
Checks / check (push) Has been cancelled
Build and Push Docker Image / Build and Push Image (push) Failing after 32s

This commit is contained in:
Vladimir Rubin 2024-11-28 10:23:34 +02:00
parent 71f10a0a9f
commit f8e0ef1536
Signed by: vavakado
GPG key ID: CAB744727F36B524

View file

@ -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