diff --git a/.vscode/settings.json b/.vscode/settings.json index 220dffa..0a61f0e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "eslint.validate": [ "javascript" diff --git a/Dockerfile b/Dockerfile index e8d6c8f..25ad90b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ ############################################################################################################ # Stage: prepare a base image with all native utils pre-installed, used both by builder and definitive image -FROM node:16.18.0-alpine3.15 AS trivy +FROM node:16.20.2-alpine3.18 AS trivy -ARG TRIVY_VERSION=0.43.0 +ARG TRIVY_VERSION=0.48.3 RUN apk update && apk add --no-cache ca-certificates git rpm && update-ca-certificates @@ -46,7 +46,7 @@ RUN npm prune --production && \ ###################################### # Stage: final image -FROM node:16.18.0-alpine3.15 +FROM node:16.20.2-alpine3.18 WORKDIR /webapp RUN apk add --no-cache dumb-init diff --git a/package-lock.json b/package-lock.json index 44449c3..684353b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,12 @@ { "name": "trivy-exporter", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { + "name": "trivy-exporter", + "version": "1.0.0", "dependencies": { "@swimlane/docker-reference": "^2.0.1", "dockerode": "^3.3.5", @@ -21,8 +24,7 @@ "eslint-plugin-promise": "^6.1.1", "eslint-plugin-vue": "^9.15.1", "nodemon": "^3.0.1" - }, - "version": "1.0.0" + } }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", @@ -3564,6 +3566,5 @@ "url": "https://github.com/sponsors/sindresorhus" } } - }, - "version": "1.0.0" + } }