浏览代码

Merge pull request #5920 from Nowheresly/baseImgDockerUpd

fix: ensure Dockerfile and github actions use the same nodejs version
Timothy Jaeryang Baek 7 月之前
父节点
当前提交
82ac2e4edb
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      .github/workflows/format-build-frontend.yaml
  2. 1 1
      Dockerfile

+ 2 - 2
.github/workflows/format-build-frontend.yaml

@@ -21,7 +21,7 @@ jobs:
       - name: Setup Node.js
       - name: Setup Node.js
         uses: actions/setup-node@v4
         uses: actions/setup-node@v4
         with:
         with:
-          node-version: '20' # Or specify any other version you want to use
+          node-version: '21' # Or specify any other version you want to use
 
 
       - name: Install Dependencies
       - name: Install Dependencies
         run: npm install
         run: npm install
@@ -48,7 +48,7 @@ jobs:
       - name: Setup Node.js
       - name: Setup Node.js
         uses: actions/setup-node@v4
         uses: actions/setup-node@v4
         with:
         with:
-          node-version: '20'
+          node-version: '21'
 
 
       - name: Install Dependencies
       - name: Install Dependencies
         run: npm ci
         run: npm ci

+ 1 - 1
Dockerfile

@@ -17,7 +17,7 @@ ARG UID=0
 ARG GID=0
 ARG GID=0
 
 
 ######## WebUI frontend ########
 ######## WebUI frontend ########
-FROM --platform=$BUILDPLATFORM node:21-alpine3.19 AS build
+FROM --platform=$BUILDPLATFORM node:21-alpine3.20 AS build
 ARG BUILD_HASH
 ARG BUILD_HASH
 
 
 WORKDIR /app
 WORKDIR /app