fix(docker): add missing codegen schemas to astro-builder stage#7994
Merged
fix(docker): add missing codegen schemas to astro-builder stage#7994
Conversation
The astro-kbve content collections import generated schemas from packages/data/codegen/generated/ (itemdb-schema, mapdb-schema, etc.). This directory was not copied into the Docker build context, causing astro sync to fail with a missing module error and producing no build output — which then surfaced as a COPY --from not-found error.
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Proactively add packages/data/codegen/generated/ COPY to the astro-builder stage in all service Dockerfiles (discordsh, cryptothrone, herbmail, memes, irc-gateway, mc) so they don't break when content collections start importing generated schemas.
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
COPY packages/data/codegen/generated/ packages/data/codegen/generated/to the astro-builder Docker stagepackages/data/codegen/generated/. This directory was missing from the Docker build context, causingastro syncto fail withFailed to load url ../../../../../../packages/data/codegen/generated/itemdb-schema, which produced no build output and surfaced as aCOPY --from=astro-builder /app/dist/apps/astro-kbve: not founderrorTest plan
axum-kbve:container:ciDocker build succeeds with the codegen schemas availableaxum-kbve-e2ee2e tests pass end-to-end