eCourt-note/docker
Your Name c2ed9dabc1
All checks were successful
Deploy eCourt Note Web to Server / Validate Database Schema (Drizzle) (push) Successful in 4s
Deploy eCourt Note Web to Server / Build Web Docker Image (push) Successful in 47s
Deploy eCourt Note Web to Server / Deploy eCourt Note Web to Server (push) Successful in 3s
Deploy eCourt Note Web to Server / Notify Deployment Status (push) Successful in 1s
docker: แก้ build ล้มที่ stage deps — postinstall หา scripts/patch-pdf-worker.mjs ไม่เจอ — เพิ่ม COPY scripts/patch-pdf-worker.mjs scripts/ ก่อน npm ci: Dockerfile เดิมคัดลอกแค่ package.json/package-lock.json แล้วสั่ง npm ci ทันที แต่ postinstall (node scripts/patch-pdf-worker.mjs ตาม invariant #6 — Docker build ต้องใช้ตัว patch ไม่ใช่ copyFileSync เปล่า) รันตอน npm ci ซึ่งไฟล์ script ยังไม่ถูกคัดลอกเข้า image (จะเข้าเองใน stage builder ผ่าน COPY . . ซึ่งช้ากว่า) → MODULE_NOT_FOUND exit 1 — คัดเฉพาะไฟล์เดียวไม่ทำลาย cache layer ของ dependencies (แก้ script อื่น migrate/seed-samples ไม่ต้อง install ใหม่) (คำขอผู้ใช้ 2026-09-25)
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-25 13:35:36 +07:00
..
web.Dockerfile docker: แก้ build ล้มที่ stage deps — postinstall หา scripts/patch-pdf-worker.mjs ไม่เจอ — เพิ่ม COPY scripts/patch-pdf-worker.mjs scripts/ ก่อน npm ci: Dockerfile เดิมคัดลอกแค่ package.json/package-lock.json แล้วสั่ง npm ci ทันที แต่ postinstall (node scripts/patch-pdf-worker.mjs ตาม invariant #6 — Docker build ต้องใช้ตัว patch ไม่ใช่ copyFileSync เปล่า) รันตอน npm ci ซึ่งไฟล์ script ยังไม่ถูกคัดลอกเข้า image (จะเข้าเองใน stage builder ผ่าน COPY . . ซึ่งช้ากว่า) → MODULE_NOT_FOUND exit 1 — คัดเฉพาะไฟล์เดียวไม่ทำลาย cache layer ของ dependencies (แก้ script อื่น migrate/seed-samples ไม่ต้อง install ใหม่) (คำขอผู้ใช้ 2026-09-25) 2026-09-25 13:35:36 +07:00