fix(docker): include root-level sentry configs in build context#170
Merged
Conversation
- blanket *.ts/*.tsx rules in .dockerignore are root-anchored and excluded sentry.server.config.ts and sentry.edge.config.ts, breaking npm run build inside the v1.3.2 image - append negation patterns so the docker build context retains both files
arbisoft-qaisarirfan
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the failed container image build for release v1.3.2 by re-including the root-level Sentry config files in the Docker build context.
npm run buildinside the image)Root cause
.dockerignorelines 19–20 contain blanket*.ts/*.tsxrules..dockerignorepatterns are root-anchored (unlike.gitignore), so they exclude top-level files only;src/is unaffected..tsfiles required by the production build:sentry.server.config.tsandsentry.edge.config.ts, imported bysrc/instrumentation.ts.next build. Releases ≤ v1.3.1 were unaffected because no root-level.tsfile was needed at build time.Changes
.dockerignore: append negation patterns to re-include the two files:Verification
docker buildcopying the two files from the build context: fails on currentmain, succeeds with this change.Notes
32cbd41) and fails again; the fix applies from the next release cut after merge.