Files
awoooi/.dockerignore
OG T 4762ad924d ci(cd): 首席架構師 Review Phase 25 全批修正 (C1-C4 / S1-S4 / I1-I4)
修正項目:
  C1: DOCKER_BUILDKIT=1 + ARG BUILDKIT_INLINE_CACHE + syntax directive (兩個 Dockerfile)
  C2: Alert Chain Smoke Test 修正 pass/fail 輸出邏輯 (不再無條件 pass)
  C3: API Dockerfile builder stage 先 pip install 後 COPY src/ (deps cache 正確失效)
  C4: Deploy step 自行管理 SSH key + ssh-keyscan 取代 StrictHostKeyChecking=no
  S1/S2: 統一 SSH 連線方式,移除 StrictHostKeyChecking=no
  S3: API Dockerfile HEALTHCHECK 改用 curl 取代 httpx (確保 image 有該工具)
  S4: type-sync-check.yaml python → python3
  I1: 建立 .dockerignore 防止無關檔案污染 build context
  I2: 加入 Setup Python Tools 共用步驟
  I3: deploy-alerts job 移至獨立 deploy-alerts.yaml workflow (paths trigger)
  I4: E2E Smoke Test 加入 pnpm install + PLAYWRIGHT_BASE_URL 公網域名

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 12:42:37 +08:00

51 lines
696 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 首席架構師 Review I1 (2026-04-05 Claude Code)
# 防止無關檔案射入 Docker build context縮短 context 傳輸時間
# 並防止 .playwright-mcp/ PNG/HTML 等大檔案造成 layer hash 不必要失效
# Git
.git
.gitignore
# CI/CD
.gitea
.github
# 開發工具
.playwright-mcp
.vscode
.idea
*.md
*.log
*.tmp
# 文件與腳本(不需要進 image
docs
scripts
# Node 快取monorepo 根目錄)
node_modules
# Python 快取
__pycache__
*.pyc
*.pyo
.venv
.pytest_cache
.mypy_cache
dist
*.egg-info
# 測試結果
test-results
coverage
.coverage
# 環境變數(絕對不能進 image
.env
.env.*
apps/api/.env
apps/web/.env*
# memory/ADR不影響 build
memory