Skip to content

Commit 86c2bd6

Browse files
committed
更新Dockerfile 版本
1 parent 454c85f commit 86c2bd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ARG NOTION_PAGE_ID
22
# Install dependencies only when needed
3-
FROM node:14-alpine AS deps
3+
FROM node:18-alpine3.18 AS deps
44
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
55
RUN apk add --no-cache libc6-compat
66
WORKDIR /app
77
COPY package.json ./
88
RUN yarn install --frozen-lockfile
99

1010
# Rebuild the source code only when needed
11-
FROM node:14-alpine AS builder
11+
FROM node:18-alpine3.18 AS builder
1212
ARG NOTION_PAGE_ID
1313
WORKDIR /app
1414
COPY --from=deps /app/node_modules ./node_modules

0 commit comments

Comments
 (0)