Update Node.js to v20
This commit is contained in:
parent
25c8deeedb
commit
fd86a1de83
@ -1,6 +1,6 @@
|
|||||||
FROM harbor.server.kjuulh.io/kjuulh/git-log:1681930905086 as git-log
|
FROM harbor.server.kjuulh.io/kjuulh/git-log:1681930905086 as git-log
|
||||||
|
|
||||||
FROM harbor.server.kjuulh.io/docker-proxy/library/node:19-alpine AS deps
|
FROM harbor.server.kjuulh.io/docker-proxy/library/node:20-alpine AS deps
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ RUN \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM harbor.server.kjuulh.io/docker-proxy/library/node:19-alpine AS builder
|
FROM harbor.server.kjuulh.io/docker-proxy/library/node:20-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
@ -26,7 +26,7 @@ RUN yarn build
|
|||||||
|
|
||||||
|
|
||||||
# Production image, copy all the files and run next
|
# Production image, copy all the files and run next
|
||||||
FROM harbor.server.kjuulh.io/docker-proxy/library/node:19-alpine AS runner
|
FROM harbor.server.kjuulh.io/docker-proxy/library/node:20-alpine AS runner
|
||||||
|
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user