Cache downloaded deps
This commit is contained in:
parent
bc3f513f6d
commit
f03c0bc63f
1 changed files with 7 additions and 3 deletions
10
Dockerfile
10
Dockerfile
|
@ -20,12 +20,16 @@ RUN addgroup -g ${GID} akkoma \
|
|||
|
||||
WORKDIR ${BUILD_DIR}
|
||||
|
||||
RUN mix local.hex --force \
|
||||
&& mix local.rebar --force
|
||||
|
||||
COPY ./mix.exs ./mix.lock ./
|
||||
|
||||
RUN mix deps.get --only ${MIX_ENV}
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p "${BUILD_DIR}_build/" \
|
||||
&& mix local.hex --force \
|
||||
&& mix local.rebar --force \
|
||||
&& mix deps.get --only prod \
|
||||
&& mix release --path "${BUILD_DIR}_build"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue