Update frontend new build dev, proc 5
This commit is contained in:
@@ -17,10 +17,13 @@ ENV TZ=Asia/Bangkok \
|
|||||||
|
|
||||||
############ Deps (install) ############
|
############ Deps (install) ############
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
COPY package.json package-lock.json* ./
|
## COPY package.json package-lock.json* ./
|
||||||
# ถ้ามี lock ใช้ npm ci; ถ้าไม่มีก็ npm i
|
# ถ้ามี 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
|
# เพิ่ม shadcn/ui + tailwind deps
|
||||||
RUN npm install -D tailwindcss postcss autoprefixer shadcn@latest \
|
RUN npm install -D tailwindcss postcss autoprefixer shadcn@latest \
|
||||||
|
|||||||
Reference in New Issue
Block a user