FastGPT/个人记录.md
ethan martin f22c22a635
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
记录个人部署的过程
2025-06-09 15:23:09 +08:00

35 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 格式化查看容器网络
方便测试网络的联通性,主要重启网络就会变,暂时先手动完成这一步
docker ps -q | xargs -n 1 docker inspect --format '容器ID: {{.Id}}
容器名称: {{.Name}}
状态: {{.State.Status}}
{{range $net, $settings := .NetworkSettings.Networks}}网络名称: {{$net}}
- IP地址: {{$settings.IPAddress}}
- 别名: {{printf "%v" $settings.Aliases}}
{{end}}
------------------------------------'
# 更改项
将app的port更改为3001之前为3000修改了包括dockerfile、package.json
# 构建一个镜像
构建时间服务器端2核8g需要20分钟左右
## 官方构建命令
docker build -f ./projects/app/Dockerfile -t registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.1 . --build-arg name=app
## 自定义命令
docker build -f ./projects/app/Dockerfile -t martingpt:v4.8.1 . --build-arg name=app
构建标签为martingpt版本为v4.8.1的images
可以通过docker images命令查看在未构建该镜像时系统已经有如下镜像了
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt v4.9.10-fix2 6ab06da546ca 9 days ago 380MB
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server v4.9.10-fix2 ebfa023a0fde 9 days ago 181MB
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox v4.9.10-fix2 cd3e0ac636f6 9 days ago 543MB
stirlingtools/stirling-pdf latest 48aebce79e99 2 weeks ago 1.88GB
registry.cn-hangzhou.aliyuncs.com/labring/aiproxy v0.1.7 ebeaca8b63cd 8 weeks ago 199MB
registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector v0.8.0-pg15 b3993e95063f 7 months ago 429MB
traefik v3.1 075808f3fdf7 7 months ago 178MB
registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo 5.0.18 021e1bd71d92 2 years ago 662MB