1
0
mirror of https://github.com/badgen/badgen.net.git synced 2025-04-19 05:42:17 +03:00

chore: update node version to 18 in Dockerfile (#639)

This commit is contained in:
Amio Jin 2023-07-30 23:19:25 +08:00 committed by GitHub
parent d542a1c69e
commit d4af5e0c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
FROM node:12-alpine AS build
FROM node:18-alpine AS build
WORKDIR /src
COPY . .
RUN npm ci && npm run build
FROM node:12-alpine
FROM node:18-alpine
WORKDIR /app
COPY --from=build /src/dist .
ENTRYPOINT node /app/index.js

View File

@ -69,7 +69,7 @@
"npm": ">=8.x"
},
"volta": {
"node": "18.10.0",
"npm": "8.2.0"
"node": "18.17.0",
"npm": "9.6.7"
}
}