forked from Mirrors/keyoxide-web
feat: update to node 20
This commit is contained in:
parent
6ec95cb659
commit
bad5af6770
2 changed files with 4 additions and 4 deletions
|
@ -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/
|
|
@ -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 ./",
|
||||||
|
|
Loading…
Reference in a new issue