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

This commit is contained in:
Kunthawat
2026-04-02 09:59:41 +07:00
parent e1d170252b
commit e44f1b176d

View File

@@ -8,8 +8,9 @@ RUN npm run build
FROM node:20-alpine FROM node:20-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install --production RUN npm install
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
RUN apk add --no-cache sqlite-libs RUN apk add --no-cache sqlite-libs