Merge pull request #14 from R0m1k3/antigravity

build: Configure Dockerfile for Flutter web release build and add the…
This commit is contained in:
LogiFlow authored and GitHub committed 2025-12-06 00:46:12 +01:00
commit 044d859538
2 files changed
+7 -2

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 # Re-run pub get after copying source to ensure lockfile consistency
RUN flutter pub get RUN flutter pub get
# Build web application (Debug mode for better error messages) # Build web application (CanvasKit renderer is now default)
RUN flutter build web --debug --verbose RUN flutter build web --release --base-href="/" --verbose
# ============================================ # ============================================
# Stage 2: Serve with dhttpd (Dart HTTP server) # Stage 2: Serve with dhttpd (Dart HTTP server)
+5
View File
@@ -1,11 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<base href="$FLUTTER_BASE_HREF"> <base href="$FLUTTER_BASE_HREF">
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="IPTV Web Application"> <meta name="description" content="IPTV Web Application">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="XtremFlow"> <meta name="apple-mobile-web-app-title" content="XtremFlow">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
@@ -22,14 +24,17 @@
height: 100vh; height: 100vh;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
} }
.loading { .loading {
color: #fff; color: #fff;
font-size: 18px; font-size: 18px;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="loading">Loading XtremFlow...</div> <div class="loading">Loading XtremFlow...</div>
<script src="flutter_bootstrap.js" async></script> <script src="flutter_bootstrap.js" async></script>
</body> </body>
</html> </html>