build: Configure Dockerfile for Flutter web release build and add the web application entry point index.html.

This commit is contained in:
Michael committed 2025-12-06 00:45:48 +01:00
1 parent f0286a3498
commit 3cd8e3dd52
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -26,8 +26,8 @@ COPY . .
# Re-run pub get after copying source to ensure lockfile consistency
RUN flutter pub get
# Build web application (Debug mode for better error messages)
RUN flutter build web --debug --verbose
# Build web application (CanvasKit renderer is now default)
RUN flutter build web --release --base-href="/" --verbose
# ============================================
# Stage 2: Serve with dhttpd (Dart HTTP server)