mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
fix: pin Flutter SDK version to 3.27.4 and add build diagnostics to Dockerfile
This commit is contained in:
1 parent
f076e1859d
commit
a37e9544cf
1 file changed
+9
-2
+9
-2
@@ -1,7 +1,8 @@
|
||||
# ============================================
|
||||
# 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
|
||||
|
||||
@@ -10,6 +11,9 @@ WORKDIR /app
|
||||
# Safe directory configuration for git
|
||||
RUN git config --global --add safe.directory /app
|
||||
|
||||
# Diagnostic: Show Flutter version
|
||||
RUN flutter --version
|
||||
|
||||
# Enable web support (idempotent)
|
||||
RUN flutter config --enable-web
|
||||
|
||||
@@ -26,8 +30,11 @@ COPY . .
|
||||
# Re-run pub get after copying source to ensure lockfile consistency
|
||||
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)
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user