Skip to content

Commit

Permalink
Tweak Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankumpf committed Oct 4, 2020
1 parent 6d4304d commit 8adadaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ ENV MIX_ENV=prod
WORKDIR /opt/app

COPY mix.exs mix.lock ./
RUN mix deps.get --only $MIX_ENV

COPY config config
RUN mix "do" deps.get --only $MIX_ENV, deps.compile
RUN mix deps.compile

COPY assets/package.json assets/package-lock.json ./assets/
RUN npm ci --prefix ./assets --progress=false --no-audit --loglevel=error
Expand Down

0 comments on commit 8adadaf

Please sign in to comment.