From 70b61c77f925762bdf21544e36bcb6352fad963e Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Mon, 8 Dec 2025 12:41:13 +0100 Subject: [PATCH] build: update Flutter base image to stable and add `--no-tree-shake-icons` and `--verbose` flags to the web build command. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0e6ad5d..62d136e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ # ============================================ # Stage 1: Build Flutter Web Application # ============================================ -# Using a specific Flutter version to ensure consistent builds -FROM ghcr.io/cirruslabs/flutter:3.27.4 AS builder +FROM ghcr.io/cirruslabs/flutter:stable AS builder USER root @@ -31,10 +30,12 @@ COPY . . RUN flutter pub get # Diagnostic: Analyze for errors before building +# Using || true to prevent build failure on warnings, as we want to see the error in build step if any RUN flutter analyze --no-fatal-warnings || true # Build web application (CanvasKit renderer is now default) -RUN flutter build web --release --base-href="/" +# Added --no-tree-shake-icons to prevent potential font issues in some environments +RUN flutter build web --release --base-href="/" --no-tree-shake-icons --verbose # ============================================ # Stage 2: Serve with custom Dart server (with API proxy)