Skip to content

Commit df39e85

Browse files
committed
fix(lrm): remove package json files to avoid Trivy to scan it and find non relevant errors
1 parent d2480a0 commit df39e85

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

web/lrm/server/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ COPY package*.json ./
2828
# Install production dependencies via NPM
2929
RUN npm ci --omit=dev
3030

31+
# Remove npm lock file after install to avoid scan from Trivy
32+
RUN rm -f package-lock.json
33+
3134
# Copy build directory from stage 1
3235
COPY --from=build /app/dist .
3336

0 commit comments

Comments
 (0)