From c2ed9dabc13a326448bdc7808480b3521bda8d69 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 25 Sep 2026 13:35:36 +0700 Subject: [PATCH] =?UTF-8?q?docker:=20=E0=B9=81=E0=B8=81=E0=B9=89=20build?= =?UTF-8?q?=20=E0=B8=A5=E0=B9=89=E0=B8=A1=E0=B8=97=E0=B8=B5=E0=B9=88=20sta?= =?UTF-8?q?ge=20deps=20=E2=80=94=20postinstall=20=E0=B8=AB=E0=B8=B2=20scri?= =?UTF-8?q?pts/patch-pdf-worker.mjs=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=80?= =?UTF-8?q?=E0=B8=88=E0=B8=AD=20=E2=80=94=20=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=20COPY=20scripts/patch-pdf-worker.mjs=20scri?= =?UTF-8?q?pts/=20=E0=B8=81=E0=B9=88=E0=B8=AD=E0=B8=99=20npm=20ci:=20Docke?= =?UTF-8?q?rfile=20=E0=B9=80=E0=B8=94=E0=B8=B4=E0=B8=A1=E0=B8=84=E0=B8=B1?= =?UTF-8?q?=E0=B8=94=E0=B8=A5=E0=B8=AD=E0=B8=81=E0=B9=81=E0=B8=84=E0=B9=88?= =?UTF-8?q?=20package.json/package-lock.json=20=E0=B9=81=E0=B8=A5=E0=B9=89?= =?UTF-8?q?=E0=B8=A7=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=20npm=20ci=20?= =?UTF-8?q?=E0=B8=97=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5=20=E0=B9=81?= =?UTF-8?q?=E0=B8=95=E0=B9=88=20postinstall=20(node=20scripts/patch-pdf-wo?= =?UTF-8?q?rker.mjs=20=E0=B8=95=E0=B8=B2=E0=B8=A1=20invariant=20#6=20?= =?UTF-8?q?=E2=80=94=20Docker=20build=20=E0=B8=95=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B8=95=E0=B8=B1=E0=B8=A7?= =?UTF-8?q?=20patch=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=83=E0=B8=8A?= =?UTF-8?q?=E0=B9=88=20copyFileSync=20=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B9=88?= =?UTF-8?q?=E0=B8=B2)=20=E0=B8=A3=E0=B8=B1=E0=B8=99=E0=B8=95=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=20npm=20ci=20=E0=B8=8B=E0=B8=B6=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B9=84=E0=B8=9F=E0=B8=A5=E0=B9=8C=20script=20=E0=B8=A2?= =?UTF-8?q?=E0=B8=B1=E0=B8=87=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=96=E0=B8=B9?= =?UTF-8?q?=E0=B8=81=E0=B8=84=E0=B8=B1=E0=B8=94=E0=B8=A5=E0=B8=AD=E0=B8=81?= =?UTF-8?q?=E0=B9=80=E0=B8=82=E0=B9=89=E0=B8=B2=20image=20(=E0=B8=88?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=82=E0=B9=89=E0=B8=B2=E0=B9=80=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B9=83=E0=B8=99=20stage=20builder=20=E0=B8=9C?= =?UTF-8?q?=E0=B9=88=E0=B8=B2=E0=B8=99=20COPY=20.=20.=20=E0=B8=8B=E0=B8=B6?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B8=8A=E0=B9=89=E0=B8=B2=E0=B8=81=E0=B8=A7?= =?UTF-8?q?=E0=B9=88=E0=B8=B2)=20=E2=86=92=20MODULE=5FNOT=5FFOUND=20exit?= =?UTF-8?q?=201=20=E2=80=94=20=E0=B8=84=E0=B8=B1=E0=B8=94=E0=B9=80?= =?UTF-8?q?=E0=B8=89=E0=B8=9E=E0=B8=B2=E0=B8=B0=E0=B9=84=E0=B8=9F=E0=B8=A5?= =?UTF-8?q?=E0=B9=8C=E0=B9=80=E0=B8=94=E0=B8=B5=E0=B8=A2=E0=B8=A7=E0=B9=84?= =?UTF-8?q?=E0=B8=A1=E0=B9=88=E0=B8=97=E0=B8=B3=E0=B8=A5=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=20cache=20layer=20=E0=B8=82=E0=B8=AD=E0=B8=87=20dependencies?= =?UTF-8?q?=20(=E0=B9=81=E0=B8=81=E0=B9=89=20script=20=E0=B8=AD=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=99=20migrate/seed-samples=20=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87=20install=20?= =?UTF-8?q?=E0=B9=83=E0=B8=AB=E0=B8=A1=E0=B9=88)=20(=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B9=83=E0=B8=8A?= =?UTF-8?q?=E0=B9=89=202026-09-25)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- docker/web.Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/web.Dockerfile b/docker/web.Dockerfile index 9fbc9b4..a1da8ac 100644 --- a/docker/web.Dockerfile +++ b/docker/web.Dockerfile @@ -2,6 +2,8 @@ FROM node:24-alpine AS deps WORKDIR /app COPY package.json package-lock.json ./ +# postinstall รัน scripts/patch-pdf-worker.mjs ตอน npm ci — คัดลอกเข้ามาก่อน ไม่งั้นหาไฟล์ไม่เจอ +COPY scripts/patch-pdf-worker.mjs scripts/ # postinstall เขียน public/pdf.worker.min.mjs — ต้องมีโฟลเดอร์ public/ ก่อน ไม่งั้น npm ci ล้ม RUN mkdir -p public && npm ci