Fix Dockerfile - use npm install instead of production to build native modules

This commit is contained in:
Kunthawat committed 2026-04-02 09:59:41 +07:00
1 parent e1d170252b
commit e44f1b176d
1 file changed
+2 -1
+2 -1
View File
@@ -8,8 +8,9 @@ RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
RUN npm install
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
RUN apk add --no-cache sqlite-libs