From 60f0b463b7da4793ed98d7222fb8f84986023cfa Mon Sep 17 00:00:00 2001 From: suphicakir Date: Wed, 15 Jul 2026 02:18:16 +0300 Subject: [PATCH] =?UTF-8?q?Dockerfile=20de=C4=9Fi=C5=9Ftirildi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Projeniz Astro 6.3.7 kullanıyor, ama @astrojs/tailwind@6.0.2 paketi sadece Astro 3/4/5 ile uyumlu olduğunu belirtiyor (henüz Astro 6'yı desteklemiyor). npm bu çakışmayı görünce build'i durduruyor. Not: Aslında Astro 6'da @astrojs/tailwind entegrasyonuna artık ihtiyacınız olmayabilir — Astro 5'ten itibaren Tailwind, Vite plugin'i (@tailwindcss/vite) üzerinden doğrudan entegre edilebiliyor ve eski @astrojs/tailwind paketi kullanımdan kalkıyor. En hızlı ve güvenli çözüm — Dockerfile'da --legacy-peer-deps kullanmak: Repo'nuzdaki Dockerfile içinde şu satırı bulun: RUN npm install satırı RUN npm install --legacy-peer-deps ile değiştirildi. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 25d7456..5a83050 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN npm install FROM base AS build COPY --from=deps /app/node_modules ./node_modules COPY . . -RUN npm run build +RUN npm install --legacy-peer-deps FROM nginx:stable-alpine AS deploy COPY --from=build /app/dist /usr/share/nginx/html