diff --git a/Dockerfile b/Dockerfile index 881f3a0..a29e991 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,9 @@ COPY . . RUN --mount=type=cache,target=/root/.pub-cache \ flutter build web --release +# Create app-version.json if it doesnt exist +RUN test -f app-version.json || echo '{"version":"__BUILD_PUBLISHED_AT__"}' > app-version.json + # Stage 2: Serve with nginx FROM nginx:alpine ARG PUBLISHED_AT