Skip to content

Commit

Permalink
Cache ngcc compile step
Browse files Browse the repository at this point in the history
  • Loading branch information
bvangennep committed May 27, 2020
1 parent 99c8c63 commit fdd7f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
# add yarn.lock to .slugignore in your project
ONBUILD ADD package*.json yarn.* /app/user/
ONBUILD RUN [ -f yarn.lock ] && yarn install --no-progress || npm install
ONBUILD RUN if command -v ngcc; then ngcc; else echo 'No ngcc detected'; fi

# Add files
ONBUILD ADD . /app/user/

0 comments on commit fdd7f23

Please sign in to comment.