mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 04:39:39 +02:00
fix(contacts): stop pruning 'docs' dirs — breaks googleapis sub-modules
The Dockerfile pruning step deleted all 'docs' directories in node_modules, including googleapis/build/src/apis/docs/ which is the Google Docs API sub-module. This caused 'Cannot find module ./docs' crash loop on startup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ec8847cee3
commit
62a13d2f45
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ WORKDIR /app
|
|||
RUN pnpm prune --prod --no-optional 2>/dev/null || true \
|
||||
&& find node_modules -name '*.ts' -not -name '*.d.ts' -delete 2>/dev/null || true \
|
||||
&& find node_modules -name '*.map' -delete 2>/dev/null || true \
|
||||
&& find node_modules -type d \( -name 'test' -o -name 'tests' -o -name '__tests__' -o -name 'docs' \) -prune -exec rm -rf {} + 2>/dev/null || true
|
||||
&& find node_modules -type d \( -name 'test' -o -name 'tests' -o -name '__tests__' \) -prune -exec rm -rf {} + 2>/dev/null || true
|
||||
|
||||
# Production stage
|
||||
FROM node:20-alpine AS production
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue