Skip to content

Commit fb2a539

Browse files
kevcodezsoedirgo
authored andcommitted
chore: prune dev dependencies on docker build
1 parent 80809c7 commit fb2a539

File tree

3 files changed

+82
-224
lines changed

3 files changed

+82
-224
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /usr/src/app
55
COPY package.json package-lock.json ./
66
RUN npm clean-install
77
COPY . .
8-
RUN npm run build
8+
RUN npm run build && npm prune --omit=dev
99

1010
FROM node:16-bullseye-slim
1111
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)