mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-19 21:18:06 +02:00
feat: Initialize XtremFlow project with core structure, IPTV features, authentication, and video player.
This commit is contained in:
commit
2a28eb44d8
28 files changed
+3279
No files matched your search
+41
@@ -0,0 +1,41 @@
|
||||
# Multi-stage Dockerfile for Flutter Web IPTV Application
|
||||
# Stage 1: Build Flutter Web Application
|
||||
FROM ghcr.io/cirruslabs/flutter:stable AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy pubspec files
|
||||
COPY pubspec.yaml pubspec.lock ./
|
||||
|
||||
# Get dependencies
|
||||
RUN flutter pub get
|
||||
|
||||
# Copy entire project
|
||||
COPY . .
|
||||
|
||||
# Build Flutter Web with CanvasKit renderer for 60fps performance
|
||||
RUN flutter build web --release --web-renderer canvaskit
|
||||
|
||||
# Stage 2: Serve with dhttpd (Dart HTTP Server)
|
||||
FROM dart:stable AS runtime
|
||||
|
||||
# Install dhttpd globally
|
||||
RUN dart pub global activate dhttpd
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy built web files from builder stage
|
||||
COPY --from=builder /app/build/web /app/web
|
||||
|
||||
# Create data directory for Hive persistence
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
# Expose port (internal only, not mapped to host)
|
||||
EXPOSE 8080
|
||||
|
||||
# Set environment variable for Hive storage
|
||||
ENV HIVE_STORAGE_PATH=/app/data
|
||||
|
||||
# Run dhttpd server
|
||||
CMD ["dart", "pub", "global", "run", "dhttpd", "--host", "0.0.0.0", "--port", "8080", "--path", "/app/web"]
|
||||
Reference in new issue
Block a user