mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
enable start script
This commit is contained in:
parent
1ab9efdf07
commit
de7d1b2e22
29
start.sh
29
start.sh
@ -1,18 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
## 加速
|
||||
#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 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 config delete registry
|
||||
##yarn config delete sharp_binary_host
|
||||
##yarn config delete sharp_libvips_binary_host
|
||||
#
|
||||
#yarn cache clean
|
||||
#yarn install
|
||||
yarn install
|
||||
#
|
||||
#yarn run build
|
||||
yarn run build
|
||||
#
|
||||
#mkdir -p "./node_modules/tiktoken"
|
||||
#export OUT_DIR="out"
|
||||
@ -27,12 +27,11 @@ set -e
|
||||
|
||||
#docker network ls | grep -qw chatgpt-ns || docker network create chatgpt-ns
|
||||
|
||||
# 检查构建器是否已存在
|
||||
if ! docker buildx inspect mybuilder &> /dev/null; then
|
||||
docker buildx create --use --name=mybuilder
|
||||
fi
|
||||
#docker buildx build --platform linux/amd64 -t registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:temp -f Dockerfile.linux-build --load .
|
||||
docker buildx build --platform linux/amd64 -t registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:temp -f Dockerfile --load .
|
||||
|
||||
docker tag registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:temp registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:latest
|
||||
docker tag registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:temp registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:test
|
||||
## 检查构建器是否已存在
|
||||
#if ! docker buildx inspect mybuilder &> /dev/null; then
|
||||
# docker buildx create --use --name=mybuilder
|
||||
#fi
|
||||
#docker buildx build --platform linux/amd64 -t registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:temp -f Dockerfile --load .
|
||||
#
|
||||
#docker tag registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:temp registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:latest
|
||||
#docker tag registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:temp registry.cn-hangzhou.aliyuncs.com/si-private/chatgpt-next-web:test
|
||||
|
Loading…
Reference in New Issue
Block a user