Skip to content

Commit f6f3c4c

Browse files
committed
fix: update docker version
1 parent 81b9f16 commit f6f3c4c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
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

0 commit comments

Comments
 (0)