mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
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:
commit
57f17f9cc5
1 file changed
+9
-2
+9
-2
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user