From ebcc42cc49eeb5fff130e49a8d53f5581e6ec2ae Mon Sep 17 00:00:00 2001 From: Bernd Storath <999999bst@gmail.com> Date: Mon, 27 Apr 2026 09:07:20 +0200 Subject: [PATCH] fix build --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61676675..0eb674a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,10 @@ RUN apk add linux-headers build-base go git && \ cd ../amneziawg-tools/src && \ make +FROM docker.io/library/node:krypton-alpine AS build-libsql +WORKDIR /app +RUN npm install --no-save --omit=dev libsql + # Copy build result to a new image. # This saves a lot of disk space. FROM docker.io/library/node:krypton-alpine @@ -35,9 +39,8 @@ COPY --from=build /app/.output /app # Copy migrations COPY --from=build /app/server/database/migrations /app/server/database/migrations # libsql (https://github.com/nitrojs/nitro/issues/3328) -RUN cd /app/server && \ - npm install --no-save --omit=dev libsql && \ - npm cache clean --force +COPY --from=build-libsql /app/node_modules /app/server/node_modules + # cli COPY --from=build /app/cli/cli.sh /usr/local/bin/cli RUN chmod +x /usr/local/bin/cli