Skip to content

Commit

Permalink
Reduce docker build context size by ignoring node_modules
Browse files Browse the repository at this point in the history
node_modules can get large and adds time to the context upload to the
Docker engine. In our development environment, node_modules is mounted
from the host with the rest of the application source and will always be present.
  • Loading branch information
nilbus committed Jul 20, 2017
1 parent ea35db4 commit 6ca82a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
log
tmp
vendor

# For development build efficiency.
# Consider restoring this if needed for a production build.
node_modules

0 comments on commit 6ca82a3

Please sign in to comment.