From a2cd58e434e18c1946892df09bea46b25c003467 Mon Sep 17 00:00:00 2001 From: Kunthawat Date: Thu, 2 Apr 2026 10:01:18 +0700 Subject: [PATCH] Fix npm install - add --legacy-peer-deps for Astro 6 + tailwind compatibility --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d68359b..6381fbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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