Fix Dockerfile - use npm install instead of production to build native modules
This commit is contained in:
1 parent
e1d170252b
commit
e44f1b176d
1 file changed
+2
-1
+2
-1
@@ -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