Skip to content

Commit a04d2e4

Browse files
committed
fix(docker): skip npm scripts during production build to prevent husky install failure
1 parent 50ed2e3 commit a04d2e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /app
55

66
# Copy package files for dependency installation
77
COPY package.json package-lock.json ./
8-
RUN npm ci --only=production && \
8+
RUN npm ci --omit=dev --omit=optional --ignore-scripts && \
99
npm cache clean --force
1010

1111
# Production stage

0 commit comments

Comments
 (0)