fix(planting-service): Dockerfile复制tsconfig以支持ts-node seed

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-24 21:41:32 -08:00
parent 8a0bff5010
commit 94a5c29a09
2 changed files with 4 additions and 2 deletions

View File

@ -402,7 +402,8 @@
"Bash(frontend/mobile-app/lib/core/services/contract_signing_service.dart )",
"Bash(frontend/mobile-app/lib/features/contract_signing/ )",
"Bash(frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart )",
"Bash(git branch:*)"
"Bash(git branch:*)",
"Bash(echo \"docker exec rwa-planting-service npx prisma db execute --stdin <<< \"\"SELECT template_id, version, title, is_active FROM contract_templates;\"\"\")"
],
"deny": [],
"ask": []

View File

@ -30,8 +30,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy package files
# Copy package files and tsconfig for seed
COPY package*.json ./
COPY tsconfig*.json ./
# Install production dependencies + ts-node for seed
RUN npm ci --only=production && npm install ts-node typescript @types/node --save-dev