Cache downloaded deps

This commit is contained in:
itepechi 2023-08-04 05:24:06 +09:00
parent bc3f513f6d
commit f03c0bc63f
1 changed files with 7 additions and 3 deletions

View File

@ -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"