Skip to content

Commit a4769c7

Browse files
committed
updated docker file
1 parent 3f6cfc4 commit a4769c7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/server/dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM node:20-alpine AS builder
33

44
WORKDIR /app
55

6-
COPY package*.json ./
7-
RUN npm ci
6+
COPY package.json ./
7+
RUN npm install
88

99
COPY . .
1010
RUN npm run build
@@ -16,8 +16,8 @@ WORKDIR /app
1616

1717
ENV NODE_ENV=production
1818

19-
COPY package*.json ./
20-
RUN npm ci --only=production && npm cache clean --force
19+
COPY package.json ./
20+
RUN npm install --omit=dev && npm cache clean --force
2121

2222
COPY --from=builder /app/dist ./dist
2323

0 commit comments

Comments
 (0)