fix build

This commit is contained in:
Bernd Storath 2026-04-27 09:07:20 +02:00
parent be8d24e492
commit ebcc42cc49

View file

@ -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