# Étape 1 : Build Flutter Web FROM ghcr.io/cirruslabs/flutter:stable AS build WORKDIR /app COPY pubspec.yaml pubspec.lock* ./ RUN flutter pub get COPY . . RUN flutter build web --release --base-href / # Étape 2 : Serveur Nginx FROM nginx:alpine COPY --from=build /app/build/web /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80