mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
尝试优化构建结构
This commit is contained in:
parent
ad45a8195f
commit
569a731ee8
@ -23,9 +23,13 @@
|
|||||||
## ENV NEXT_SHARP_PATH /app/node_modules/sharp
|
## ENV NEXT_SHARP_PATH /app/node_modules/sharp
|
||||||
#RUN yarn build
|
#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
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
COPY --from=base /app/.next ./next
|
||||||
|
COPY --from=base /app/node_modules ./node_modules
|
||||||
RUN yarn install && yarn build
|
RUN yarn install && yarn build
|
||||||
|
|
||||||
FROM sijinhui/node:base AS runner
|
FROM sijinhui/node:base AS runner
|
||||||
|
Loading…
Reference in New Issue
Block a user