From 14be6da802c9b74cbfee0d1ad089544f38a690fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Romero?= <46640258+IOhacker@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:22:34 -0600 Subject: [PATCH] Upgrade NodeJs and Nginx (#2227) --- .github/workflows/build.yml | 6 +++--- Dockerfile | 6 +++--- README.md | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e4618e076..0c8a05bd67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,15 +21,15 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - name: Use Node.js 19 + - name: Use Node.js 22 uses: actions/setup-node@v1 with: # no support for lts as of now with github actions. # issue link : https://github.com/actions/setup-node/issues/26 # lts/gallium node v19.7.0 (npm v9.5.0) - node-version: '19.7.0' + node-version: '22.9.0' - name: Angular CLI install - run: npm install -g --silent @angular/cli@14.2.12 + run: npm install -g --silent @angular/cli@16.0.2 - name: Npm install run: npm install diff --git a/Dockerfile b/Dockerfile index 3f427d4bbe..b0e18b032f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ ############### ### STAGE 1: Build app ############### -ARG BUILDER_IMAGE=node:19-alpine -ARG NGINX_IMAGE=nginx:1.19.3 +ARG BUILDER_IMAGE=node:22.9.0-alpine +ARG NGINX_IMAGE=nginx:1.27.3 FROM $BUILDER_IMAGE as builder ARG NPM_REGISTRY_URL=https://registry.npmjs.org/ @@ -33,7 +33,7 @@ RUN npm cache clear --force RUN npm config set fetch-retry-maxtimeout 120000 RUN npm config set registry $NPM_REGISTRY_URL --location=global -RUN npm install --location=global @angular/cli@14.2.12 +RUN npm install --location=global @angular/cli@16.0.2 RUN npm install diff --git a/README.md b/README.md index 2730a2c86d..1b3f7a05f9 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ The latest code is continuously deployed at https://openmf.github.io/web-app/ wh [`git`](https://git-scm.com/downloads) - [`npm`](https://nodejs.org/en/download/) + [`nodeJs`](https://nodejs.org/en/download/) -2. Install [angular-cli](https://github.com/angular/angular-cli) globally. +3. Install [angular-cli](https://github.com/angular/angular-cli) globally. ``` -npm install -g @angular/cli@14.2.12 +npm install -g @angular/cli@16.0.2 ``` 3. Clone the project locally into your system.