Moved around copy steps

This commit is contained in:
Kieran Eglin 2024-09-10 15:58:49 -07:00
parent f6344d43d2
commit d18bc47de2
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -49,14 +49,15 @@ 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
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"