Skip to content

Commit

Permalink
Update Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-br committed Apr 22, 2024
1 parent 955b061 commit 7cb6b2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ FROM elixir:latest
# Create and set the working directory
WORKDIR /app

ENV MIX_ENV prod

# Copy the mix.exs and mix.lock files to the container
COPY mix.exs mix.lock ./

Expand All @@ -14,6 +16,7 @@ RUN mix archive.install github hexpm/hex branch latest --force
RUN mix local.rebar --force
# Install dependencies
RUN mix deps.get
RUN mix deps.compile

# Copy the rest of your application's code
COPY . .
Expand Down

0 comments on commit 7cb6b2a

Please sign in to comment.