Skip to content
Snippets Groups Projects

Stop copying node_modules into frontend image

Merged Andreas Ellewsen requested to merge stop-slow-frontend-builds into master
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -10,6 +10,12 @@ APP_NAME="greg-frontend"
CONTAINER="${REPO}/${PROJECT}/${APP_NAME}"
IMAGE_TAG="${CONTAINER}:${GIT_BRANCH}-${GIT_SHA}"
echo "Generating .dockerignore"
echo ".*
*" > .dockerignore
git ls-tree --name-only HEAD | sed 's/^/!/' >> .dockerignore
echo "**/node_modules" >> .dockerignore
if command -v podman > /dev/null 2>&1; then
BUILDER=$(command -v podman)
else
Loading