mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 16:16:39 +08:00
fix build
This commit is contained in:
parent
04d028634f
commit
c8f3e8840d
10
Dockerfile
10
Dockerfile
@ -18,8 +18,8 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
# 避免下面那个报错
|
# 避免下面那个报错
|
||||||
RUN mkdir -p "/app/node_modules/tiktoken" && mkdir -p "/app/node_modules/sharp"
|
# RUN mkdir -p "/app/node_modules/tiktoken" && mkdir -p "/app/node_modules/sharp"
|
||||||
#RUN yarn add sharp
|
# RUN yarn add sharp
|
||||||
ENV NEXT_SHARP_PATH /app/node_modules/sharp
|
ENV NEXT_SHARP_PATH /app/node_modules/sharp
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
@ -38,10 +38,8 @@ COPY --from=builder /app/.next/standalone ./
|
|||||||
COPY --from=builder /app/.next/static ./.next/static
|
COPY --from=builder /app/.next/static ./.next/static
|
||||||
COPY --from=builder /app/.next/server ./.next/server
|
COPY --from=builder /app/.next/server ./.next/server
|
||||||
|
|
||||||
# 一个插件一直有问题。
|
# COPY --from=builder /app/node_modules/tiktoken ./node_modules/tiktoken
|
||||||
COPY --from=builder /app/node_modules/tiktoken ./node_modules/tiktoken
|
# COPY --from=builder /app/node_modules/sharp ./node_modules/sharp
|
||||||
COPY --from=builder /app/node_modules/sharp ./node_modules/sharp
|
|
||||||
#COPY out/ .
|
|
||||||
|
|
||||||
RUN rm -f .env
|
RUN rm -f .env
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user