Skip to content

Commit

Permalink
更新Dockerfile 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Aug 15, 2023
1 parent 454c85f commit 86c2bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ARG NOTION_PAGE_ID
# Install dependencies only when needed
FROM node:14-alpine AS deps
FROM node:18-alpine3.18 AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json ./
RUN yarn install --frozen-lockfile

# Rebuild the source code only when needed
FROM node:14-alpine AS builder
FROM node:18-alpine3.18 AS builder
ARG NOTION_PAGE_ID
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
Expand Down

0 comments on commit 86c2bd6

Please sign in to comment.