mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-12 01:36:20 +02:00
chore: update task.md to reflect current local Docker environment maintenance tasks.
This commit is contained in:
1 parent
d1933f7500
commit
3a633cd74d
1 file changed
+10
-3
+10
-3
@@ -41,18 +41,25 @@ RUN flutter build web --release --base-href="/" --no-wasm-dry-run --no-tree-shak
|
||||
# ============================================
|
||||
# Stage 2: Compile Configurable Server (Native)
|
||||
# ============================================
|
||||
FROM dart:stable AS server-builder
|
||||
# Use Flutter image instead of Dart image because pubspec.yaml contains flutter dependencies
|
||||
FROM ghcr.io/cirruslabs/flutter:stable AS server-builder
|
||||
|
||||
USER root
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Safe config for git
|
||||
RUN git config --global --add safe.directory /app
|
||||
|
||||
COPY pubspec.yaml ./
|
||||
COPY bin/ ./bin/
|
||||
COPY lib/ ./lib/
|
||||
|
||||
# Get dependencies
|
||||
RUN dart pub get
|
||||
# Get dependencies using flutter pub to resolve SDK deps
|
||||
RUN flutter pub get
|
||||
|
||||
# Compile server to native executable
|
||||
# "dart compile exe" is available in flutter image too
|
||||
RUN dart compile exe bin/server.dart -o bin/server
|
||||
|
||||
# ============================================
|
||||
|
||||
Reference in new issue
Block a user