docs: 简化 Docker 部署流程,用 curl 下载替代仓库克隆 (#53)

* docs: simplify Docker deploy — download two files instead of cloning repo

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(docs): use mkdir -p and guard against .env.local overwrite

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Zonghao Yuan
2026-06-07 22:39:01 +08:00
committed by GitHub
parent cf83b9adea
commit 88808b93b6
3 changed files with 27 additions and 9 deletions
+9 -3
View File
@@ -51,10 +51,16 @@ Cloudflare 部署因场景流水线需要更长 CPU 时间,需要 Workers Paid
### Docker 部署(自托管)
适用于 VPS、家庭服务器或本地电脑。支持 x86 和 ARM(含 Apple Silicon Mac)。
适用于 VPS、家庭服务器或本地电脑。支持 x86 和 ARM(含 Apple Silicon Mac)。无需克隆仓库,只需下载两个文件:
1. 复制 `.env.example``.env.local`,填入你的 API Key(详见[配置教程](#配置教程)
2. 启动:
```bash
mkdir -p infiplot && cd infiplot
curl -fsSL https://raw.githubusercontent.com/zonghaoyuan/infiplot/main/docker-compose.yml -o docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/zonghaoyuan/infiplot/main/.env.example -o .env.example
[ -f .env.local ] || cp .env.example .env.local
```
编辑 `.env.local` 填入你的 API Key(详见[配置教程](#配置教程)),然后启动:
```bash
docker compose up -d