Browse Source

dev: bump to node 22 (early build)

pull/1024/head
pheiduck 2 years ago
parent
commit
9b69111c3d
  1. 2
      .github/workflows/lint.yml
  2. 2
      .github/workflows/npm-update-bot.yml
  3. 6
      Dockerfile
  4. 2
      src/package.json

2
.github/workflows/lint.yml

@ -18,7 +18,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '22'
check-latest: true check-latest: true
cache: 'npm' cache: 'npm'
cache-dependency-path: | cache-dependency-path: |

2
.github/workflows/npm-update-bot.yml

@ -20,7 +20,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '22'
check-latest: true check-latest: true
cache: 'npm' cache: 'npm'
cache-dependency-path: | cache-dependency-path: |

6
Dockerfile

@ -1,6 +1,4 @@
# As a workaround we have to build on nodejs 18 FROM docker.io/library/node:22-alpine AS build_node_modules
# nodejs 20 hangs on build with armv6/armv7
FROM docker.io/library/node:18-alpine AS build_node_modules
# Copy Web UI # Copy Web UI
COPY src /app COPY src /app
@ -10,7 +8,7 @@ RUN npm ci --omit=dev &&\
# Copy build result to a new image. # Copy build result to a new image.
# This saves a lot of disk space. # This saves a lot of disk space.
FROM docker.io/library/node:20-alpine FROM docker.io/library/node:22-alpine
HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3 HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3
COPY --from=build_node_modules /app /app COPY --from=build_node_modules /app /app

2
src/package.json

@ -31,6 +31,6 @@
] ]
}, },
"engines": { "engines": {
"node": "20" "node": "22"
} }
} }

Loading…
Cancel
Save