mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
23 lines
746 B
Bash
Executable File
23 lines
746 B
Bash
Executable File
#!/bin/bash
|
|
|
|
yarn config set registry 'https://registry.npmmirror.com/'
|
|
yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
|
|
yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
|
|
|
|
#yarn cache clean
|
|
yarn install
|
|
yarn run build
|
|
|
|
mkdir -p "./node_modules/tiktoken"
|
|
export OUT_DIR="out"
|
|
|
|
mkdir -p ${OUT_DIR}
|
|
|
|
rsync -az --delete ./.next/standalone/ ${OUT_DIR}
|
|
rsync -az --delete ./public/ ${OUT_DIR}/public
|
|
rsync -az --delete ./.next/static/ ${OUT_DIR}/.next/static
|
|
rsync -az --delete ./.next/server/ ${OUT_DIR}/.next/server
|
|
rsync -az --delete ./.next/server/ ${OUT_DIR}/.next/server
|
|
rsync -az --delete "./node_modules/tiktoken/" ${OUT_DIR}/node_modules/tiktoken
|
|
|
|
docker network create chatgpt-ns |