Skip to content

Commit 514e4d9

Browse files
committed
fix(docker): prevent npm install from running package scripts
1 parent 49c50d3 commit 514e4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COPY --from=builder /app/package.json /app/package.json
2929
COPY --from=builder /app/package-lock.json /app/package-lock.json
3030

3131
# Install production dependencies only
32-
RUN npm install --omit=dev
32+
RUN npm install --omit=dev --ignore-scripts
3333

3434
# Command to run the application
3535
ENTRYPOINT ["node", "build/index.js"]

0 commit comments

Comments
 (0)