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:
@@ -10,3 +10,8 @@ docs/
|
||||
legacy/
|
||||
dwg2dxf-api/
|
||||
.DS_Store
|
||||
.claude/
|
||||
.vscode/
|
||||
.idea/
|
||||
*.log
|
||||
*.tsbuildinfo
|
||||
|
||||
Reference in New Issue
Block a user