From cd4d1be76a8619245367a29be1ce7fd4aa5de5d6 Mon Sep 17 00:00:00 2001 From: Jukka Veijanen <k0426@student.jamk.fi> Date: Wed, 25 Nov 2020 16:35:44 +0200 Subject: [PATCH] Add npm audit --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index b777d42..6f62dd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,10 @@ RUN npm install # If you are building your code for production # RUN npm ci --only=production +# Check vulnerabilities +RUN npm install -g npm-audit-html +RUN npm audit --json | npm-audit-html --output report.html + # Bundle app source COPY . . -- GitLab