Fix Dockerfile - use npm install instead of production to build native modules
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user