From 716b37c6f2de3279c7956b54b99bfc96bbbe057e Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 13 Mar 2026 00:32:24 -0500 Subject: [PATCH] fix: use npm install in Docker so Alpine musl native bindings resolve npm ci with a Windows-generated lockfile skips @libsql/linux-x64-musl (optional native dep). Switching to npm install lets npm resolve the correct platform-specific binary for the Alpine container. Also copy node_modules into the runner stage so prisma db push and the libsql native module are available at runtime. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6df8f79..6985157 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat openssl WORKDIR /app COPY package.json package-lock.json* ./ -RUN npm ci +RUN npm install # Rebuild the source code only when needed FROM base AS builder @@ -47,6 +47,7 @@ RUN chown nextjs:nodejs .next COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma +COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules USER nextjs