Merge pull request #87 from R0m1k3/antigravity

fix: pin Flutter SDK version to 3.27.4 and add build diagnostics to D…
This commit is contained in:
LogiFlow authored and GitHub committed 2025-12-08 12:29:18 +01:00
commit 57f17f9cc5
1 file changed
+9 -2
+9 -2
View File
@@ -1,7 +1,8 @@
# ============================================ # ============================================
# Stage 1: Build Flutter Web Application # Stage 1: Build Flutter Web Application
# ============================================ # ============================================
FROM ghcr.io/cirruslabs/flutter:stable AS builder # Using a specific Flutter version to ensure consistent builds
FROM ghcr.io/cirruslabs/flutter:3.27.4 AS builder
USER root USER root
@@ -10,6 +11,9 @@ WORKDIR /app
# Safe directory configuration for git # Safe directory configuration for git
RUN git config --global --add safe.directory /app RUN git config --global --add safe.directory /app
# Diagnostic: Show Flutter version
RUN flutter --version
# Enable web support (idempotent) # Enable web support (idempotent)
RUN flutter config --enable-web RUN flutter config --enable-web
@@ -26,8 +30,11 @@ COPY . .
# Re-run pub get after copying source to ensure lockfile consistency # Re-run pub get after copying source to ensure lockfile consistency
RUN flutter pub get RUN flutter pub get
# Diagnostic: Analyze for errors before building
RUN flutter analyze --no-fatal-warnings || true
# Build web application (CanvasKit renderer is now default) # Build web application (CanvasKit renderer is now default)
RUN flutter build web --release --base-href="/" --verbose RUN flutter build web --release --base-href="/"
# ============================================ # ============================================
# Stage 2: Serve with custom Dart server (with API proxy) # Stage 2: Serve with custom Dart server (with API proxy)