Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Upgrade node version to current LTS #1853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
4 changes: 2 additions & 2 deletions hook-sdk/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM node:16-alpine as build
FROM node:18-alpine as build
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production

FROM node:16-alpine
FROM node:18-alpine
ARG NODE_ENV
RUN addgroup --system --gid 1001 app && adduser app --system --uid 1001 --ingroup app
WORKDIR /home/app/hook-wrapper/
Expand Down
4 changes: 2 additions & 2 deletions hooks/cascading-scans/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as install
FROM node:18-alpine as install
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production

FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/finding-post-processing/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/generic-webhook/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
4 changes: 2 additions & 2 deletions hooks/notification/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as install
FROM node:18-alpine as install
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production

FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/persistence-azure-monitor/hook/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG baseImageTag
ARG namespace
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/persistence-elastic/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/update-field-hook/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
4 changes: 2 additions & 2 deletions parser-sdk/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM node:16-alpine as build
FROM node:18-alpine as build
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production

FROM node:16-alpine
FROM node:18-alpine
ARG NODE_ENV
RUN addgroup --system --gid 1001 app && adduser app --system --uid 1001 --ingroup app
WORKDIR /home/app/parser-wrapper/
Expand Down
2 changes: 1 addition & 1 deletion scanners/doggo/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY --chown=app:app ./parser.js ./parser.js
# Additional packages
# ARG namespace
# ARG baseImageTag
# FROM node:16-alpine as build
# FROM node:18-alpine as build
# RUN mkdir -p /home/app
# WORKDIR /home/app
# COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/gitleaks/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# if the parser starts needing packages once again.
ARG namespace
ARG baseImageTag
# FROM node:16-alpine as build
# FROM node:18-alpine as build
# RUN mkdir -p /home/app
# WORKDIR /home/app
# COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/ncrack/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/nmap/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/sslyze/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/zap/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:16-alpine as build
FROM node:18-alpine as build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down