perf: optimize Docker build for faster deployments

- Move prisma generate before COPY . . so it's cached when only
  source files change (saves ~10-15s per build)
- Use npm ci --ignore-scripts in deps stage (postinstall scripts
  not needed, prisma generate runs explicitly)
- Combine apk add + addgroup + adduser into single RUN (fewer layers)
- Expand .dockerignore to exclude .claude/, .vscode/, logs, tsbuildinfo

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-11 21:15:41 +02:00
parent dbed7105b7
commit 28bb395b06
2 changed files with 16 additions and 8 deletions
+5
View File
@@ -10,3 +10,8 @@ docs/
legacy/
dwg2dxf-api/
.DS_Store
.claude/
.vscode/
.idea/
*.log
*.tsbuildinfo