Repository navigation
fix(docker): avoid redundant builds and compress preview assets - #56
Open
1052326311 wants to merge 2 commits into
Open
1052326311 wants to merge 2 commits into
1052326311 wants to merge 2 commits into
Conversation
1052326311
marked this pull request as ready for review
September 30, 2026 17:58
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.
Problem and changes
Production source updates repeat work that is unnecessary for the requested service. This patch:
web-build, so API/WS/migration images consume the shared package build without compiling the frontend.text/event-streamare excluded.WEB_BUILD_MEMORY_MBbuild argument for Node/Turbopack compilation budgets. The upstream default remains unchanged.Validation
The Chromium/cache/compression changes have been exercised in a Docker Production deployment. A representative preview module transferred 206,571 gzip bytes instead of 1,113,787 raw bytes, with identical decompressed contents; this is an asset-size result, not an overall latency claim. Health and WebSocket checks remained healthy after the gateway update.
The separated API production build completed successfully without running the Next.js build, and its Chromium executable check passed. A downstream web build using a 512 MiB compilation budget completed successfully; the upstream opt-in argument wiring has not been rebuilt across platforms. The budget is an example, not a recommended universal memory limit.
No instance domains, provider credentials, branding, or host-specific swap/resource-management scripts are included.