Skip to content

Commit

Permalink
Update .dockerignore to exclude .npm directories
Browse files Browse the repository at this point in the history
MATS ignores the .npm directory in MATScommon as well. This prevents
Meteor from using the .npm/packages/npm-shrinkwrap.json file and
so Meteor pulls in the correct NPM package for the architecture.
Otherwise, Meteor will try to rebuild from source and greatly increase
the image size.

Additionally, reorganized the .dockerignore and updated the exclude
rules to better target artifacts that shouldn't be brought into the
image.
  • Loading branch information
ian-noaa committed Sep 1, 2023
1 parent e46b410 commit 37ff46b
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
.git*
.idea
.vscode
README*
RELEASE.txt
appProduction*
bundle*
node_modules
cache*
# Tooling artifacts
**/.git
**/.github
**/.idea
**/.vscode
**/.fleet

# Meteor artifacts
**/bundle
**/.npm
**/.meteor/local
**/node_modules

# METexpress artifacts
**/*.md
container_deployment
home
logs
docs
scripts
server_configuration_files
static
tests
tmp*
METexpress
**/tests
build.sh
LICENSE.md

# Development files
**/tmp*
cache*
logs

0 comments on commit 37ff46b

Please sign in to comment.