Skip to content

Exclude node_modules from root Docker build context - #116

Open
jay23606 wants to merge 1 commit into
sitmun:mainfrom
jay23606:pr-go/114-front-image-build-sends-node-modules-bec
Open

jay23606 wants to merge 1 commit into
sitmun:mainfrom
jay23606:pr-go/114-front-image-build-sends-node-modules-bec

Conversation

@jay23606

Copy link
Copy Markdown

Bug

The front image uses the repository root as its build context, but the root .dockerignore did not exclude installed Node dependencies.

Change

Added node_modules/ and **/node_modules/ exclusions to the root .dockerignore. Added a regression test that checks both patterns.

Test

  • node --test tests/dockerignore.test.mjs (failed before the fix with the missing exclusion assertion; passed after the fix).

Regression test: untested: CONTRIBUTING does not mention tests

Fixes #114

@jay23606

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Front image build sends node_modules because the root .dockerignore does not exclude it

1 participant