Spaces:
Runtime error
Runtime error
File size: 528 Bytes
d910940 3d34bc1 31cff6b 994e972 31cff6b 994e972 d910940 f0c8fd5 994e972 3d34bc1 994e972 11352ff 994e972 11352ff |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM node:18
RUN git clone https://github.com/SciYied/ChatGPT-Next-Web.git
WORKDIR "ChatGPT-Next-Web"
RUN npm i
RUN npm run build
# 复制 standalone 输出文件到一个新目录
RUN cp -r .next/standalone ./standalone
RUN cp -r .next/static ./standalone/.next/static
RUN cp -r public ./standalone/public
# 切换工作目录
WORKDIR /ChatGPT-Next-Web/standalone
EXPOSE 3000
# 设置环境变量,让 Next.js 监听所有网络接口
ENV HOSTNAME "0.0.0.0"
ENV PORT 3000
# 修改启动命令
CMD ["node", "server.js"] |