fix: Docker build errors — Prisma generate order, .dockerignore multi-service
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 11s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 23s
Deploy / Build Web Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 10s
E2E Tests / Playwright E2E (push) Failing after 12s
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 / Lint → Typecheck → Test → Build (22) (push) Failing after 11s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 23s
Deploy / Build Web Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 10s
E2E Tests / Playwright E2E (push) Failing after 12s
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
- Dockerfile: move prisma generate BEFORE nest build (fixes TS2305 PropertyType) - .dockerignore: remove apps/web + libs/ai-services exclusions (needed by Kaniko) - CI: add pnpm db:generate step before lint/typecheck/build Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
# =============================================================================
|
||||
# .dockerignore — shared across ALL Dockerfiles (api, web, ai-services)
|
||||
# All 3 Dockerfiles build from repo root context, so do NOT exclude
|
||||
# apps/web or libs/ai-services here.
|
||||
# =============================================================================
|
||||
|
||||
# Build outputs & caches (rebuilt inside Docker)
|
||||
node_modules
|
||||
.next
|
||||
dist
|
||||
*.tsbuildinfo
|
||||
.turbo
|
||||
.cache
|
||||
.nx
|
||||
.eslintcache
|
||||
coverage
|
||||
|
||||
# Version control
|
||||
.git
|
||||
@@ -9,15 +21,21 @@ dist
|
||||
.husky
|
||||
.gitignore
|
||||
|
||||
# Documentation and tests
|
||||
# Documentation, tests, monitoring (not needed in any build)
|
||||
docs
|
||||
e2e
|
||||
load-tests
|
||||
monitoring
|
||||
playwright-report
|
||||
*.md
|
||||
!README.md
|
||||
playwright.config.ts
|
||||
CHANGELOG.md
|
||||
CONTRIBUTING.md
|
||||
SEED_GENERATION_SCRIPT.ts
|
||||
|
||||
# Environment and secrets
|
||||
.env*
|
||||
# Environment and secrets (NEVER ship into images)
|
||||
.env
|
||||
.env.ci
|
||||
.env.test
|
||||
!.env.example
|
||||
|
||||
# IDE and editor
|
||||
@@ -26,35 +44,24 @@ playwright-report
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# Build caches
|
||||
.eslintcache
|
||||
coverage
|
||||
.turbo
|
||||
.cache
|
||||
.nx
|
||||
|
||||
# OS files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Docker files (avoid recursive context)
|
||||
# Docker / infra files (avoid recursive context)
|
||||
docker-compose*.yml
|
||||
Dockerfile*
|
||||
monitoring
|
||||
infra
|
||||
|
||||
# Dev tools
|
||||
scripts/backup
|
||||
# Dev tools & scripts (not needed at build time)
|
||||
scripts
|
||||
*.log
|
||||
|
||||
# Python / AI services (not needed for API build)
|
||||
libs/ai-services
|
||||
# Python caches (rebuilt inside AI container)
|
||||
__pycache__
|
||||
*.pyc
|
||||
.venv
|
||||
|
||||
# Frontend (not needed for API build, has its own Dockerfile)
|
||||
apps/web
|
||||
|
||||
# Agent configs (Paperclip / Claude)
|
||||
# Agent / Claude configs
|
||||
.claude
|
||||
agents
|
||||
|
||||
Reference in New Issue
Block a user