use relative path
This commit is contained in:
parent
9c7bf85f36
commit
1fffdb025c
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue