diff --git a/dockerfiles/bright.dockerfile b/dockerfiles/bright.dockerfile index 8d5ce2b..81f1210 100644 --- a/dockerfiles/bright.dockerfile +++ b/dockerfiles/bright.dockerfile @@ -35,21 +35,21 @@ RUN mix local.hex --force && \ ENV MIX_ENV="prod" # install mix dependencies -COPY mix.exs mix.lock ./ +COPY ./services/bright/mix.exs ./services/bright/mix.lock ./ RUN mix deps.get --only $MIX_ENV RUN mkdir config # 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/ +COPY ./services/bright/config/config.exs ./services/bright/config/${MIX_ENV}.exs config/ RUN mix deps.compile -COPY priv priv +COPY ./services/bright/priv priv -COPY lib lib +COPY ./services/bright/lib lib -COPY assets assets +COPY ./services/bright/assets assets # compile assets RUN mix assets.deploy @@ -58,9 +58,9 @@ RUN mix assets.deploy RUN mix compile # Changes to config/runtime.exs don't require recompiling the code -COPY config/runtime.exs config/ +COPY ./services/bright/config/runtime.exs config/ -COPY rel rel +COPY ./services/bright/rel rel RUN mix release