Compare commits

...

4 Commits

Author SHA1 Message Date
Alex Tran
da7fbcbb46 fix: test 2025-08-25 15:28:25 -05:00
Alex Tran
b471e190a0 fix: test 2025-08-25 15:13:36 -05:00
Alex Tran
7672c8c6e0 fix: test 2025-08-25 15:01:47 -05:00
Alex Tran
386a6bb377 fix: sharp issue with arm64 build 2025-08-25 14:53:07 -05:00

View File

@@ -91,7 +91,11 @@ FROM prod-builder-base AS server-prod
WORKDIR /usr/src/app
COPY ./package* ./pnpm* .pnpmfile.cjs ./
COPY ./server ./server/
RUN SHARP_IGNORE_GLOBAL_LIBVIPS=true pnpm --filter immich --frozen-lockfile build && \
## Build server with sharp linked against system (global) libvips instead of vendored copy.
## Using SHARP_IGNORE_GLOBAL_LIBVIPS previously caused arm64 (e.g. Raspberry Pi) illegal instruction
## crashes due to the prebuilt vendored libvips targeting newer ARM features. Force global libvips
## during build so the already-present distro libvips (built with conservative flags) is used.
RUN SHARP_FORCE_GLOBAL_LIBVIPS=true pnpm --filter immich --frozen-lockfile build && \
SHARP_FORCE_GLOBAL_LIBVIPS=true pnpm --filter immich --frozen-lockfile --prod --no-optional deploy /output/server-pruned
# web production build