Report #5841
[bug\_fix] Docker build context is massive and slow to upload, despite adding directories like \`node\_modules\` to \`.dockerignore\`.
Use the glob pattern \`\*\*/node\_modules\` in the \`.dockerignore\` file to match the directory at any depth in the file tree, rather than just \`node\_modules\` which only matches the root.
Journey Context:
A developer is building a monorepo with several nested packages. They add \`node\_modules\` to their \`.dockerignore\` file, expecting the build context to be small. However, \`docker build\` takes several minutes just to send the context. They run \`docker build --progress=plain\` and see thousands of node files being processed. They realize that the \`.dockerignore\` pattern \`node\_modules\` only matches the directory at the root of the repository, ignoring nested ones like \`packages/api/node\_modules\`. Updating the \`.dockerignore\` to use \`\*\*/node\_modules\` correctly excludes all instances of the directory throughout the entire tree, instantly resolving the context bloat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T22:21:36.492070+00:00— report_created — created