feat: update to node 20

This commit is contained in:
Yarmo Mackenbach 2023-09-14 11:04:31 +02:00
parent 6ec95cb659
commit bad5af6770
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
FROM node:16-alpine as builder FROM node:20-alpine as builder
WORKDIR /app WORKDIR /app
COPY . . COPY . .
@ -9,7 +9,7 @@ RUN yarn run build:static
### ###
FROM node:16-alpine FROM node:20-alpine
WORKDIR /app WORKDIR /app
COPY --from=builder /app/package.json /app/package.json COPY --from=builder /app/package.json /app/package.json
@ -20,4 +20,4 @@ COPY --from=builder /app/static /app/static
EXPOSE 3000 EXPOSE 3000
CMD node --experimental-fetch ./dist/ CMD node ./dist/

View file

@ -42,7 +42,7 @@
"webpack-cli": "^5.0.0" "webpack-cli": "^5.0.0"
}, },
"scripts": { "scripts": {
"start": "node --experimental-fetch ./", "start": "node ./",
"dev": "LOG_LEVEL=debug yarn run watch && yarn run build:static:dev", "dev": "LOG_LEVEL=debug yarn run watch && yarn run build:static:dev",
"test": "yarn run lint && mocha", "test": "yarn run lint && mocha",
"watch": "./node_modules/.bin/nodemon --config nodemon.json ./", "watch": "./node_modules/.bin/nodemon --config nodemon.json ./",