mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-24 07:28:05 +02:00
fix(docker): move CACHEBUST ARG before COPY to properly invalidate Flutter web build cache
This commit is contained in:
1 parent
9107eadc73
commit
93cecfc6d3
1 file changed
+3
-1
+3
-1
@@ -16,8 +16,10 @@ ENV DART_VM_OPTIONS="--old_gen_heap_size=4096"
|
|||||||
# Enable web support (idempotent)
|
# Enable web support (idempotent)
|
||||||
RUN flutter config --enable-web
|
RUN flutter config --enable-web
|
||||||
|
|
||||||
|
# Force cache invalidation when source changes (update this value to force rebuild)
|
||||||
|
ARG CACHEBUST=2026-03-08-v3
|
||||||
|
|
||||||
# Copy dependency files first for better caching
|
# Copy dependency files first for better caching
|
||||||
ARG CACHEBUST=2026-01-07-v1
|
|
||||||
COPY pubspec.yaml ./
|
COPY pubspec.yaml ./
|
||||||
|
|
||||||
# Get dependencies
|
# Get dependencies
|
||||||
|
|||||||
Reference in new issue
Block a user