From 5ce0c79a7505758645e106caf012cd7e32c7b14f Mon Sep 17 00:00:00 2001 From: martabal <74269598+martabal@users.noreply.github.com> Date: Wed, 23 Apr 2025 17:44:59 +0200 Subject: [PATCH] feat: sveltekit served by nestjs --- templates/Dockerfile.j2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/templates/Dockerfile.j2 b/templates/Dockerfile.j2 index 125eb70..0613418 100644 --- a/templates/Dockerfile.j2 +++ b/templates/Dockerfile.j2 @@ -172,11 +172,11 @@ RUN \ npm link && \ npm cache clean --force && \ cp -a \ - resources \ + dist \ + node_modules \ package.json \ package-lock.json \ - node_modules \ - dist \ + resources \ /app/immich/server && \ echo "**** build open-api ****" && \ cd /tmp/immich/open-api/typescript-sdk && \ @@ -186,8 +186,12 @@ RUN \ cd /tmp/immich/web && \ npm ci --no-fund --no-update-notifier && \ npm run build && \ + npm prune --omit=dev --omit=optional && \ cp -a \ build/* \ + node_modules \ + package.json \ + package-lock.json \ static \ /app/immich/server/www && \ echo "**** build CLI ****" && \ @@ -196,10 +200,10 @@ RUN \ npm run build && \ npm prune --omit=dev --omit=optional && \ cp -a \ + dist \ + node_modules \ package.json \ package-lock.json \ - node_modules \ - dist \ /app/immich/cli && \ {% if machine_learning_provider -%} echo "**** build machine-learning ****" && \