Fix npm install - add --legacy-peer-deps for Astro 6 + tailwind compatibility

This commit is contained in:
Kunthawat
2026-04-02 10:01:18 +07:00
parent e44f1b176d
commit a2cd58e434

View File

@@ -1,14 +1,14 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --legacy-peer-deps
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules