From 569a731ee8d2a44d6630d852b5760282484bc5b6 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Thu, 26 Sep 2024 18:52:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BC=98=E5=8C=96=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 91607cbd6..8c4a6edf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,9 +23,13 @@ ## ENV NEXT_SHARP_PATH /app/node_modules/sharp #RUN yarn build -FROM sijinhui/chatgpt-next-web:buildcache as builder +FROM sijinhui/chatgpt-next-web:buildcache as base + +FROM sijinhui/node:base AS builder WORKDIR /app COPY . . +COPY --from=base /app/.next ./next +COPY --from=base /app/node_modules ./node_modules RUN yarn install && yarn build FROM sijinhui/node:base AS runner