From f8e0ef1536e310f90db6125cc5a0fc9de0110e7b Mon Sep 17 00:00:00 2001 From: Vladimir Rubin Date: Thu, 28 Nov 2024 10:23:34 +0200 Subject: [PATCH] ci: update dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2c6b13a..82c6b0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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