mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
Merge pull request #2 from R0m1k3/claude/fix-flutter-build-error-01Vhyg9PXDQf6xgVFKzpcLGD
fix: add build_runner step to Dockerfile and update CACHEBUST to v4
This commit is contained in:
commit
7d5c72f7f7
1 file changed
+4
-1
+4
-1
@@ -19,7 +19,7 @@ RUN flutter config --enable-web
|
|||||||
# Copy dependency files first for better caching
|
# Copy dependency files first for better caching
|
||||||
# Note: pubspec.lock will be generated by flutter pub get if missing
|
# Note: pubspec.lock will be generated by flutter pub get if missing
|
||||||
# Cache buster - INCREMENT THIS VALUE TO FORCE REBUILD ON DEPLOY
|
# Cache buster - INCREMENT THIS VALUE TO FORCE REBUILD ON DEPLOY
|
||||||
ARG CACHEBUST=2025-12-08-v3
|
ARG CACHEBUST=2025-12-08-v4
|
||||||
COPY pubspec.yaml ./
|
COPY pubspec.yaml ./
|
||||||
|
|
||||||
# Get dependencies (generates pubspec.lock automatically)
|
# Get dependencies (generates pubspec.lock automatically)
|
||||||
@@ -31,6 +31,9 @@ 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
|
||||||
|
|
||||||
|
# Generate code (for Riverpod and Hive)
|
||||||
|
RUN dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
# Clean build environment to avoid conflicts
|
# Clean build environment to avoid conflicts
|
||||||
RUN flutter clean
|
RUN flutter clean
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user