Browse Source

upgrade node.js version to 22 for the docker image (#666)

* upgrade node.js version to 22 for the docker image

Signed-off-by: ryjiang <jiangruiyi@gmail.com>

* update ci node version

Signed-off-by: ryjiang <jiangruiyi@gmail.com>

---------

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 8 months ago
parent
commit
e2e4baa4e3
4 changed files with 5 additions and 5 deletions
  1. 1 1
      .github/workflows/ci.yml
  2. 1 1
      .github/workflows/dev.yml
  3. 1 1
      .github/workflows/electron.yml
  4. 2 2
      Dockerfile

+ 1 - 1
.github/workflows/ci.yml

@@ -14,7 +14,7 @@ jobs:
       - name: Setup Node.js
         uses: actions/setup-node@v4
         with:
-          node-version: 20
+          node-version: 22
 
       - name: Set up QEMU
         uses: docker/setup-qemu-action@v3

+ 1 - 1
.github/workflows/dev.yml

@@ -16,7 +16,7 @@ jobs:
       - name: Setup Node.js
         uses: actions/setup-node@v4
         with:
-          node-version: 20
+          node-version: 22
 
       # - name: Run server tests
       #   run: |

+ 1 - 1
.github/workflows/electron.yml

@@ -20,7 +20,7 @@ jobs:
       - name: Install Node.js, NPM and Yarn
         uses: actions/setup-node@v4
         with:
-          node-version: 20
+          node-version: 22
 
       - name: Build client
         run: |

+ 2 - 2
Dockerfile

@@ -1,5 +1,5 @@
 # => Building container
-FROM --platform=$TARGETPLATFORM node:18-slim as builder
+FROM --platform=$TARGETPLATFORM node:22-slim as builder
 WORKDIR /app
 COPY . .
 
@@ -19,7 +19,7 @@ ENV PORT 80
 RUN yarn build
 
 # => Copy to Final container
-FROM --platform=$TARGETPLATFORM node:18-slim
+FROM --platform=$TARGETPLATFORM node:22-slim
 WORKDIR /app
 COPY --from=builder /app/server/dist /app/dist
 COPY --from=builder /app/client/build /app/build