[Dev] Speed up CI (#385)
* Moved around copy steps * no-op change * Reverted the no-op change * Testing if docker-compose volume is needed * Nope, it's needed * Testing alternate driver * Add containerd * Bump version * Revert
This commit is contained in:
@@ -49,14 +49,16 @@ ENV LANG=en_US.UTF-8
|
|||||||
ENV LANGUAGE=en_US:en
|
ENV LANGUAGE=en_US:en
|
||||||
ENV LC_ALL=en_US.UTF-8
|
ENV LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
# Create app directory and copy the Elixir projects into it.
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . ./
|
|
||||||
|
|
||||||
|
COPY mix.exs mix.lock ./
|
||||||
# Install Elixir deps
|
# Install Elixir deps
|
||||||
# RUN mix archive.install github hexpm/hex branch latest
|
# NOTE: this has to be before the bulk copy to ensure that deps are cached
|
||||||
RUN MIX_ENV=dev mix deps.get && MIX_ENV=dev mix deps.compile
|
RUN MIX_ENV=dev mix deps.get && MIX_ENV=dev mix deps.compile
|
||||||
RUN MIX_ENV=test mix deps.get && MIX_ENV=test mix deps.compile
|
RUN MIX_ENV=test mix deps.get && MIX_ENV=test mix deps.compile
|
||||||
|
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
# Gives us iex shell history
|
# Gives us iex shell history
|
||||||
ENV ERL_AFLAGS="-kernel shell_history enabled"
|
ENV ERL_AFLAGS="-kernel shell_history enabled"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user