From 98d0d88706eb5deffa7962266882929b4afee493 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Fri, 18 Oct 2024 09:48:34 +0800 Subject: [PATCH 1/2] upgrade node.js version to 22 for the docker image Signed-off-by: ryjiang --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b7a24565..b395a99b 100644 --- a/Dockerfile +++ b/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 From 46100d84fead3ac0d86c4e0db8dc26e625b1a631 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Fri, 18 Oct 2024 09:49:43 +0800 Subject: [PATCH 2/2] update ci node version Signed-off-by: ryjiang --- .github/workflows/ci.yml | 2 +- .github/workflows/dev.yml | 2 +- .github/workflows/electron.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3459a9f4..f47edbdb 100644 --- a/.github/workflows/ci.yml +++ b/.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 diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 76fcb11c..c4d4ad3b 100644 --- a/.github/workflows/dev.yml +++ b/.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: | diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 8a358e05..63bd4033 100644 --- a/.github/workflows/electron.yml +++ b/.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: |