Upgrade NodeJs and Nginx (#2227)

This commit is contained in:
Víctor Romero
2024-12-23 20:22:34 -06:00
committed by GitHub
parent 21e2e97018
commit 14be6da802
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -21,15 +21,15 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Use Node.js 19 - name: Use Node.js 22
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
# no support for lts as of now with github actions. # no support for lts as of now with github actions.
# issue link : https://github.com/actions/setup-node/issues/26 # issue link : https://github.com/actions/setup-node/issues/26
# lts/gallium node v19.7.0 (npm v9.5.0) # lts/gallium node v19.7.0 (npm v9.5.0)
node-version: '19.7.0' node-version: '22.9.0'
- name: Angular CLI install - 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 - name: Npm install
run: npm install run: npm install
+3 -3
View File
@@ -1,8 +1,8 @@
############### ###############
### STAGE 1: Build app ### STAGE 1: Build app
############### ###############
ARG BUILDER_IMAGE=node:19-alpine ARG BUILDER_IMAGE=node:22.9.0-alpine
ARG NGINX_IMAGE=nginx:1.19.3 ARG NGINX_IMAGE=nginx:1.27.3
FROM $BUILDER_IMAGE as builder FROM $BUILDER_IMAGE as builder
ARG NPM_REGISTRY_URL=https://registry.npmjs.org/ 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 fetch-retry-maxtimeout 120000
RUN npm config set registry $NPM_REGISTRY_URL --location=global 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 RUN npm install
+3 -3
View File
@@ -14,12 +14,12 @@ The latest code is continuously deployed at https://openmf.github.io/web-app/ wh
[`git`](https://git-scm.com/downloads) [`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. 3. Clone the project locally into your system.