Dockerfile değiştirildi.
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.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user