Skip to content

Commit 09ce3cc

Browse files
authored
fix(docker): add missing codegen schemas to astro-builder stage (#7994)
* fix(docker): add missing codegen schemas to astro-builder stage 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. * fix(docker): add codegen schemas to all astro-builder stages 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.
1 parent 9bb8797 commit 09ce3cc

File tree

7 files changed

+21
-0
lines changed

7 files changed

+21
-0
lines changed

apps/cryptothrone/axum-cryptothrone/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ COPY packages/npm/astro/ packages/npm/astro/
3030
COPY packages/npm/droid/ packages/npm/droid/
3131
COPY packages/npm/laser/ packages/npm/laser/
3232

33+
# Copy generated schemas (content collections may import these)
34+
COPY packages/data/codegen/generated/ packages/data/codegen/generated/
35+
3336
# Copy astro-cryptothrone source
3437
COPY apps/cryptothrone/astro-cryptothrone/ apps/cryptothrone/astro-cryptothrone/
3538

apps/discordsh/axum-discordsh/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ RUN pnpm install --frozen-lockfile
2929
COPY packages/npm/astro/ packages/npm/astro/
3030
COPY packages/npm/droid/ packages/npm/droid/
3131

32+
# Copy generated schemas (content collections may import these)
33+
COPY packages/data/codegen/generated/ packages/data/codegen/generated/
34+
3235
# Copy astro-discordsh source
3336
COPY apps/discordsh/astro-discordsh/ apps/discordsh/astro-discordsh/
3437

apps/herbmail/axum-herbmail/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ RUN pnpm install --frozen-lockfile
2121
COPY packages/npm/astro/ packages/npm/astro/
2222
COPY packages/npm/droid/ packages/npm/droid/
2323

24+
# Copy generated schemas (content collections may import these)
25+
COPY packages/data/codegen/generated/ packages/data/codegen/generated/
26+
2427
# Copy astro-herbmail source
2528
COPY apps/herbmail/astro-herbmail/ apps/herbmail/astro-herbmail/
2629

apps/irc/irc-gateway/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ RUN pnpm install --frozen-lockfile
2121
COPY packages/npm/astro/ packages/npm/astro/
2222
COPY packages/npm/droid/ packages/npm/droid/
2323

24+
# Copy generated schemas (content collections may import these)
25+
COPY packages/data/codegen/generated/ packages/data/codegen/generated/
26+
2427
# Copy astro-irc source
2528
COPY apps/irc/astro-irc/ apps/irc/astro-irc/
2629

apps/kbve/axum-kbve/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ COPY packages/npm/astro/ packages/npm/astro/
3232
COPY packages/npm/droid/ packages/npm/droid/
3333
COPY packages/npm/laser/ packages/npm/laser/
3434

35+
# Copy generated schemas used by astro-kbve content collections
36+
COPY packages/data/codegen/generated/ packages/data/codegen/generated/
37+
3538
# Copy astro-kbve source
3639
COPY apps/kbve/astro-kbve/ apps/kbve/astro-kbve/
3740

apps/mc/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ RUN pnpm install --frozen-lockfile
2424
COPY packages/npm/astro/ packages/npm/astro/
2525
COPY packages/npm/droid/ packages/npm/droid/
2626

27+
# Copy generated schemas (content collections may import these)
28+
COPY packages/data/codegen/generated/ packages/data/codegen/generated/
29+
2730
# Copy astro-mc source
2831
COPY apps/mc/astro-mc/ apps/mc/astro-mc/
2932

apps/memes/axum-memes/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ RUN pnpm install --frozen-lockfile
2121
COPY packages/npm/astro/ packages/npm/astro/
2222
COPY packages/npm/droid/ packages/npm/droid/
2323

24+
# Copy generated schemas (content collections may import these)
25+
COPY packages/data/codegen/generated/ packages/data/codegen/generated/
26+
2427
# Copy astro-memes source
2528
COPY apps/memes/astro-memes/ apps/memes/astro-memes/
2629

0 commit comments

Comments
 (0)