11 lines
388 B
Bash
11 lines
388 B
Bash
#!/usr/bin/bash
|
||
#不包含创建kimi逆向api,创建kimiapi需要访问https://github.com/LLM-Red-Team/kimi-free-api
|
||
#docker部署一节,并修改配置文件。
|
||
#编译
|
||
cd ./cmd && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../aiweek && cd ..
|
||
timestamp=$(date +%s)
|
||
#docker构建
|
||
docker build -t aiweek:$timestamp .
|
||
|
||
|
||
docker run -d --name aiweek -v /data:/data aiweek:$timestamp |