mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: make web build stage deterministic (#27823)
This commit is contained in:
@@ -23,6 +23,9 @@ RUN --mount=type=cache,id=pnpm-server,target=/buildcache/pnpm-store \
|
|||||||
|
|
||||||
FROM builder AS web
|
FROM builder AS web
|
||||||
|
|
||||||
|
ARG BUILD_ID
|
||||||
|
ENV IMMICH_BUILD=${BUILD_ID}
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ./web ./web/
|
COPY ./web ./web/
|
||||||
COPY ./i18n ./i18n/
|
COPY ./i18n ./i18n/
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ const config = {
|
|||||||
},
|
},
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
kit: {
|
kit: {
|
||||||
|
version: {
|
||||||
|
name: process.env.IMMICH_BUILD || Date.now().toString(),
|
||||||
|
},
|
||||||
paths: {
|
paths: {
|
||||||
relative: false,
|
relative: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user