From e2e4baa4e346150b72381ccb00f03ef0aab5d3b5 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Fri, 18 Oct 2024 09:52:15 +0800 Subject: [PATCH] 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 * update ci node version Signed-off-by: ryjiang --------- Signed-off-by: ryjiang --- .github/workflows/ci.yml | 2 +- .github/workflows/dev.yml | 2 +- .github/workflows/electron.yml | 2 +- Dockerfile | 4 ++-- 4 files changed, 5 insertions(+), 5 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: | 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