From 37ff46b8f3fd09b4d60c30625740cde482121105 Mon Sep 17 00:00:00 2001 From: Ian McGinnis <67600557+ian-noaa@users.noreply.github.com> Date: Fri, 1 Sep 2023 12:38:17 -0600 Subject: [PATCH] Update .dockerignore to exclude .npm directories 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. --- .dockerignore | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/.dockerignore b/.dockerignore index f915cf9fe..18c3c3ce5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -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