Skip to content

High performance self-hosted photo and video management solution.

fix: make web build stage deterministic (#27823)

bo0tzz5334a6254a31
diff --git a/server/Dockerfile b/server/Dockerfile
index 476d58b983..5951baa96c 100644
--- a/server/Dockerfile
+++ b/server/Dockerfile
@@ -23,6 +23,9 @@ RUN --mount=type=cache,id=pnpm-server,target=/buildcache/pnpm-store \
FROM builder AS web
+ARG BUILD_ID
+ENV IMMICH_BUILD=${BUILD_ID}
+
WORKDIR /usr/src/app
COPY ./web ./web/
COPY ./i18n ./i18n/
diff --git a/web/svelte.config.js b/web/svelte.config.js
index e2a5fb5c46..15223655e6 100644
--- a/web/svelte.config.js
+++ b/web/svelte.config.js
@@ -15,6 +15,9 @@ const config = {
},
preprocess: vitePreprocess(),
kit: {
+ version: {
+ name: process.env.IMMICH_BUILD || Date.now().toString(),
+ },
paths: {
relative: false,
},