From 8d89e5f49a8d077a6c8b711c9f3e28840a645ce9 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 29 Sep 2025 17:11:42 +0700 Subject: [PATCH] Update frontend new build dev, proc 5 --- frontend/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6c83541f..d4f54324 100755 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -17,10 +17,13 @@ ENV TZ=Asia/Bangkok \ ############ Deps (install) ############ FROM base AS deps -COPY package.json package-lock.json* ./ +## COPY package.json package-lock.json* ./ # ถ้ามี lock ใช้ npm ci; ถ้าไม่มีก็ npm i -RUN if [ -f package-lock.json ]; then npm ci --no-audit --no-fund; else npm install --no-audit --no-fund; fi +## RUN if [ -f package-lock.json ]; then npm ci --no-audit --no-fund; else npm install --no-audit --no-fund; fi +COPY package.json ./ +# ไม่ copy lock เพื่อบังคับให้ใช้ npm install +RUN npm install --no-audit --no-fund # เพิ่ม shadcn/ui + tailwind deps RUN npm install -D tailwindcss postcss autoprefixer shadcn@latest \