mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: isolate docker host/container filesystem for node_modules and build output (#21167)
This commit is contained in:
parent
0729887c9c
commit
44e1c83c84
8 changed files with 252 additions and 47 deletions
|
|
@ -91,9 +91,8 @@ FROM prod-builder-base AS server-prod
|
|||
WORKDIR /usr/src/app
|
||||
COPY ./package* ./pnpm* .pnpmfile.cjs ./
|
||||
COPY ./server ./server/
|
||||
# SHARP_IGNORE_GLOBAL_LIBVIPS because 'deploy' will always build sharp bindings from source
|
||||
RUN SHARP_IGNORE_GLOBAL_LIBVIPS=true pnpm --filter immich --frozen-lockfile build && \
|
||||
pnpm --filter immich --frozen-lockfile --prod --no-optional deploy /output/server-pruned
|
||||
SHARP_FORCE_GLOBAL_LIBVIPS=true pnpm --filter immich --frozen-lockfile --prod --no-optional deploy /output/server-pruned
|
||||
|
||||
# web production build
|
||||
FROM prod-builder-base AS web-prod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue