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