From 86c2bd636ef4ccf830f28a690fb8b3ca65bf5738 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Tue, 15 Aug 2023 15:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Dockerfile=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc5c406f..a0311720 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ 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 @@ -8,7 +8,7 @@ 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