diff --git a/frontend/update-harbor-image.sh b/frontend/update-harbor-image.sh index ef2723a2a1c9ef02093c62be97fc2301b33db2c5..c45ebc1ca1ef937720750bc42dc45a628300f0fd 100755 --- a/frontend/update-harbor-image.sh +++ b/frontend/update-harbor-image.sh @@ -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