fix: API Dockerfile — include mcp-servers workspace lib in production
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 10s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 12s
Deploy / Build Web Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 12s
E2E Tests / Playwright E2E (push) Failing after 18s
Deploy / Deploy to Staging (push) Has been skipped
Deploy / Smoke Test Staging (push) Has been skipped
Deploy / Deploy to Production (push) Has been skipped
Deploy / Smoke Test Production (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
Deploy / Rollback Staging (push) Has been skipped
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 10s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 12s
Deploy / Build Web Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 12s
E2E Tests / Playwright E2E (push) Failing after 18s
Deploy / Deploy to Staging (push) Has been skipped
Deploy / Smoke Test Staging (push) Has been skipped
Deploy / Deploy to Production (push) Has been skipped
Deploy / Smoke Test Production (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
Deploy / Rollback Staging (push) Has been skipped
@goodgo/mcp-servers is a workspace dependency used at runtime. Need to copy its package.json for pnpm install resolution and its compiled dist/ output into the production image. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,7 @@ ENV NODE_ENV=production
|
||||
# Install production dependencies fresh (pnpm hoisted node_modules has broken symlinks in Docker)
|
||||
COPY --from=deps /app/pnpm-lock.yaml /app/pnpm-workspace.yaml /app/package.json /app/turbo.json /app/
|
||||
COPY --from=deps /app/apps/api/package.json /app/apps/api/
|
||||
COPY --from=deps /app/libs/mcp-servers/package.json /app/libs/mcp-servers/
|
||||
COPY --from=deps /app/prisma /app/prisma
|
||||
# Mock husky (git hooks tool) so postinstall scripts run without git
|
||||
RUN corepack enable && corepack prepare pnpm@10.27.0 --activate \
|
||||
@@ -62,6 +63,9 @@ RUN corepack enable && corepack prepare pnpm@10.27.0 --activate \
|
||||
&& npx prisma generate
|
||||
# Copy compiled application
|
||||
COPY --from=build --chown=node:node /app/apps/api/dist ./dist
|
||||
# Copy compiled workspace lib (runtime dependency)
|
||||
COPY --from=build --chown=node:node /app/libs/mcp-servers/dist /app/libs/mcp-servers/dist
|
||||
COPY --from=build --chown=node:node /app/libs/mcp-servers/package.json /app/libs/mcp-servers/package.json
|
||||
# Prisma schema
|
||||
COPY --from=build --chown=node:node /app/prisma /app/prisma
|
||||
# Package metadata
|
||||
|
||||
Reference in New Issue
Block a user