diff --git a/Dockerfile b/Dockerfile index 238bd58..62bf513 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,10 @@ ENV NEXT_PUBLIC_FACEBOOK_APP_ID=$NEXT_PUBLIC_FACEBOOK_APP_ID COPY package*.json ./ RUN npm ci COPY . . -# Build avec tolérance pour les erreurs SSR (pages client-side only) -RUN npm run build || (test -d .next && echo "Build completed with SSR warnings (expected for client-only pages)" || exit 1) +# Build Next.js - doit réussir pour continuer +RUN npm run build +# Vérifier que .next existe +RUN test -d .next || (echo "ERROR: .next directory not found after build!" && exit 1) # Étape 2 : Exécution FROM node:20-alpine AS runner