Skip to content

Commit 6416fd0

Browse files
authored
fix: update spectral core and node (#676)
* fix: update spectral core and node * fix: update docker version
1 parent 577bade commit 6416fd0

File tree

3 files changed

+978
-552
lines changed

3 files changed

+978
-552
lines changed

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM node:16 as builder
1+
###############################################################
2+
FROM node:18 as builder
23

34
COPY package.json yarn.lock ./
45
RUN yarn
@@ -10,15 +11,13 @@ RUN yarn
1011
RUN yarn build
1112

1213
###############################################################
13-
1414
FROM golang:1.18 as nodeprune
1515

1616
# Build node-prune from source
1717
RUN go install github.com/tj/node-prune@latest
1818

1919
###############################################################
20-
21-
FROM node:16 as dependencies
20+
FROM node:18 as dependencies
2221

2322
ENV NODE_ENV production
2423
COPY package.json yarn.lock ./
@@ -29,8 +28,7 @@ COPY --from=nodeprune /go/bin/node-prune /usr/local/bin/node-prune
2928
RUN node-prune
3029

3130
###############################################################
32-
33-
FROM node:16-alpine as runtime
31+
FROM node:18-alpine as runtime
3432

3533
ENV NODE_ENV production
3634

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "https://github.com/XVincentX/spectral-action/issues"
1919
},
2020
"engines": {
21-
"node": "^12.20 || >=14.13"
21+
"node": "^18.18 || >= 20.17"
2222
},
2323
"homepage": "https://github.com/XVincentX/spectral-action#readme",
2424
"devDependencies": {

0 commit comments

Comments
 (0)