Browse Source

bump to node 20

pull/999/head
pheiduck 1 year ago
committed by Philip H
parent
commit
3032163814
  1. 2
      .github/workflows/lint.yml
  2. 2
      .github/workflows/npm-update-bot.yml
  3. 7
      Dockerfile
  4. 2
      src/package-lock.json
  5. 2
      src/package.json

2
.github/workflows/lint.yml

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

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

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

7
Dockerfile

@ -1,7 +1,4 @@
# There's an issue with node:20-alpine.
# Docker deployment is canceled after 25< minutes.
FROM docker.io/library/node:18-alpine AS build_node_modules
FROM docker.io/library/node:20-alpine AS build_node_modules
# Copy Web UI
COPY src/ /app/
@ -11,7 +8,7 @@ RUN npm ci --omit=dev &&\
# Copy build result to a new image.
# This saves a lot of disk space.
FROM docker.io/library/node:18-alpine
FROM docker.io/library/node:20-alpine
COPY --from=build_node_modules /app /app
# Move node_modules one directory up, so during development

2
src/package-lock.json

@ -21,7 +21,7 @@
"tailwindcss": "^3.4.3"
},
"engines": {
"node": "18"
"node": "20"
}
},
"node_modules/@aashutoshrathi/word-wrap": {

2
src/package.json

@ -30,6 +30,6 @@
]
},
"engines": {
"node": "18"
"node": "20"
}
}

Loading…
Cancel
Save