Skip to content

Commit a21b0ee

Browse files
committed
Optimize Dockerfile
1 parent a510ff8 commit a21b0ee

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ RUN deluser --remove-home node
55

66
WORKDIR /usr/src/app
77

8-
COPY package*.json ./
9-
RUN npm ci
108
COPY . .
119
RUN chmod 755 ./server.sh
12-
13-
RUN npm run build
14-
RUN npm prune --production
10+
RUN npm ci && npm run build && npm prune --production
1511

1612
ENV NODE_ENV=production
1713
ENV PORT=8080

0 commit comments

Comments
 (0)