60f0b463b7
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.
18 lines
351 B
Docker
18 lines
351 B
Docker
FROM node:lts AS base
|
|
WORKDIR /app
|
|
|
|
FROM base AS deps
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
FROM base AS build
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
RUN npm install --legacy-peer-deps
|
|
|
|
FROM nginx:stable-alpine AS deploy
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
EXPOSE 8080
|