From 01c5d852ea800d6bdafa3832aa93edfb20a6fc66 Mon Sep 17 00:00:00 2001 From: Ludek Novy <13610612+ludeknovy@users.noreply.github.com> Date: Fri, 13 Jan 2023 21:24:13 +0100 Subject: [PATCH] node upgrade - v18 (#291) --- .github/workflows/build.yml | 3 ++- .github/workflows/static-analysis.yml | 2 +- Dockerfile | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b1ab543..7d989e15 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,12 @@ on: jobs: build: runs-on: ubuntu-latest + env: NODE_OPTIONS=--openssl-legacy-provider steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' - name: Install modules run: npm install - name: Tests diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index ce7b7064..684e8ee4 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' - name: Install modules run: npm install - name: Run ESLint diff --git a/Dockerfile b/Dockerfile index 622a31b3..ffa074c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,14 @@ -FROM node:16.18.0-alpine3.15 as builder +FROM node:18.13.0-alpine3.17 as builder WORKDIR /src/fe RUN apk --update add openjdk8 \ - git python2 build-base && \ + git build-base && \ rm -rf /var/lib/apt/lists/* +ENV NODE_OPTIONS=--openssl-legacy-provider + + COPY package.json package-lock.json angular.json ./ RUN npm install