aiweek-reconstruction/buildandrun.sh

11 lines
388 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/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