Browse Source

bump default NodeJS version to 20 LTS (#2061)

Bowen Liang 1 năm trước cách đây
mục cha
commit
dc8a8af117
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      .github/workflows/style.yml
  2. 2 2
      web/Dockerfile

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

@@ -21,7 +21,7 @@ jobs:
       - name: Setup NodeJS
         uses: actions/setup-node@v4
         with:
-          node-version: 18
+          node-version: 20
           cache: yarn
           cache-dependency-path: ./web/package.json
 

+ 2 - 2
web/Dockerfile

@@ -1,5 +1,5 @@
 # base image
-FROM node:18.17.0-alpine AS base
+FROM node:20.11.0-alpine AS base
 
 # install packages
 FROM base as packages
@@ -46,4 +46,4 @@ ARG COMMIT_SHA
 ENV COMMIT_SHA ${COMMIT_SHA}
 
 EXPOSE 3000
-ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]
+ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]