FROM node:18 | |
RUN git clone https://github.com/Yidadaa/ChatGPT-Next-Web.git | |
WORKDIR "ChatGPT-Next-Web" | |
RUN npm i | |
RUN npm run build | |
# 设置环境变量 | |
ENV BASE_URL=https://api.nova-oss.com | |
EXPOSE 3000 | |
CMD ["npm", "run", "start"] |
FROM node:18 | |
RUN git clone https://github.com/Yidadaa/ChatGPT-Next-Web.git | |
WORKDIR "ChatGPT-Next-Web" | |
RUN npm i | |
RUN npm run build | |
# 设置环境变量 | |
ENV BASE_URL=https://api.nova-oss.com | |
EXPOSE 3000 | |
CMD ["npm", "run", "start"] |