fix: all 3 Dockerfiles — Prisma copy, standalone paths, maturin PATH
Some checks failed
CI / E2E Tests (push) Has been skipped
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 20s
Deploy / Build API Image (push) Failing after 27s
Deploy / Build Web Image (push) Failing after 17s
Deploy / Build AI Services Image (push) Failing after 20s
E2E Tests / Playwright E2E (push) Failing after 22s
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 Staging (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
Some checks failed
CI / E2E Tests (push) Has been skipped
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 20s
Deploy / Build API Image (push) Failing after 27s
Deploy / Build Web Image (push) Failing after 17s
Deploy / Build AI Services Image (push) Failing after 20s
E2E Tests / Playwright E2E (push) Failing after 22s
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 Staging (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
- API: copy .prisma + @prisma into pruned node_modules, restore dist/prisma COPY - Web: fix standalone paths for monorepo (node_modules + apps/web/server.js) - AI: source cargo env in same RUN layer, wrap fallback pip install in subshell Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,9 @@ RUN npx prisma generate \
|
||||
|
||||
# Use pnpm deploy to produce a flat, production-only node_modules
|
||||
# This strips devDependencies and hoists only what @goodgo/api needs.
|
||||
RUN pnpm deploy --legacy --filter @goodgo/api --prod /app/pruned
|
||||
RUN pnpm deploy --legacy --filter @goodgo/api --prod /app/pruned \
|
||||
&& cp -r /app/node_modules/.prisma /app/pruned/node_modules/.prisma \
|
||||
&& cp -r /app/node_modules/@prisma /app/pruned/node_modules/@prisma
|
||||
|
||||
# ---- Production ----
|
||||
FROM node:22-slim AS production
|
||||
@@ -55,15 +57,12 @@ WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Copy pruned production node_modules from pnpm deploy
|
||||
# Copy pruned production node_modules from pnpm deploy (includes Prisma)
|
||||
COPY --from=build --chown=node:node /app/pruned/node_modules ./node_modules
|
||||
# Copy compiled application
|
||||
COPY --from=build --chown=node:node /app/apps/api/dist ./dist
|
||||
# Prisma schema + migrations (needed for runtime client & migrate deploy)
|
||||
COPY --from=build --chown=node:node /app/prisma ./prisma
|
||||
# Copy generated Prisma client into node_modules
|
||||
COPY --from=build --chown=node:node /app/node_modules/.prisma ./node_modules/.prisma
|
||||
COPY --from=build --chown=node:node /app/node_modules/@prisma/client ./node_modules/@prisma/client
|
||||
# Package metadata
|
||||
COPY --from=build --chown=node:node /app/apps/api/package.json ./package.json
|
||||
# Entrypoint script
|
||||
|
||||
Reference in New Issue
Block a user