fix(docker): move CACHEBUST ARG before COPY to properly invalidate Flutter web build cache

This commit is contained in:
Michael committed 2026-03-08 23:28:16 +01:00
1 parent 9107eadc73
commit 93cecfc6d3
1 file changed
+3 -1
+3 -1
View File
@@ -16,8 +16,10 @@ ENV DART_VM_OPTIONS="--old_gen_heap_size=4096"
# Enable web support (idempotent)
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
ARG CACHEBUST=2026-01-07-v1
COPY pubspec.yaml ./
# Get dependencies