Restructure into Wiki, Studio and Python monorepo with scoped CI
python CI and deployment / verify-and-deploy (push) Successful in 7m23s
studio CI and deployment / verify-and-deploy (push) Failing after 5m28s
wiki CI and deployment / verify-and-deploy (push) Failing after 6m13s

This commit is contained in:
2026-10-25 21:13:43 +08:00
parent c898e41672
commit a2330b22e2
152 changed files with 3525 additions and 3287 deletions
+8 -7
View File
@@ -6,13 +6,14 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
FROM base AS dependencies
COPY package.json package-lock.json ./
RUN npm ci
RUN corepack enable && corepack prepare pnpm@11.25.0 --activate
COPY apps/wiki/package.json apps/wiki/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
FROM dependencies AS build
# .dockerignore excludes docs and operational notes without extra legacy COPY snapshots.
COPY . .
RUN npm run typecheck && npm test && npm run build && npm run test:smoke
COPY apps/wiki/ .
RUN pnpm typecheck && pnpm test && pnpm build && pnpm test:smoke
FROM build AS integration
USER node
@@ -24,9 +25,9 @@ ENV NODE_ENV=production HOSTNAME=0.0.0.0 PORT=3000 \
COPY --from=build --chown=node:node /app/.next/standalone/ ./
COPY --from=build --chown=node:node /app/dist/worker.cjs /app/dist/bootstrap.cjs /app/dist/publish-learning-series.cjs ./
COPY --from=build --chown=node:node /app/db/ ./db/
COPY --chown=node:node scripts/container-health.mjs scripts/wait-snapshots.mjs ./
COPY --chown=node:node scripts/import-character-packs.mjs ./scripts/import-character-packs.mjs
COPY --chown=node:node seed/characters/ ./seed/characters/
COPY --chown=node:node apps/wiki/scripts/container-health.mjs apps/wiki/scripts/wait-snapshots.mjs ./
COPY --chown=node:node apps/wiki/scripts/import-character-packs.mjs ./scripts/import-character-packs.mjs
COPY --chown=node:node apps/wiki/seed/characters/ ./seed/characters/
USER node
EXPOSE 3000
CMD ["node", "server.js"]