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:
+9
-3
@@ -51,10 +51,16 @@ After deploy, fill in the environment variables — see the [Configuration guide
|
||||
|
||||
### Docker (self-hosted)
|
||||
|
||||
For VPS, home servers, or local machines. Supports x86 and ARM (including Apple Silicon Macs).
|
||||
For VPS, home servers, or local machines. Supports x86 and ARM (including Apple Silicon Macs). No need to clone the repo — just download two files:
|
||||
|
||||
1. Copy `.env.example` to `.env.local` and fill in your API keys (see [Configuration guide](#configuration-guide))
|
||||
2. Start:
|
||||
```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
|
||||
```
|
||||
|
||||
Edit `.env.local` with your API keys (see [Configuration guide](#configuration-guide)), then start:
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
|
||||
+9
-3
@@ -51,10 +51,16 @@ Cloudflare へのデプロイはシーンパイプラインがより長い CPU
|
||||
|
||||
### Docker デプロイ(セルフホスト)
|
||||
|
||||
VPS、ホームサーバー、ローカルマシンに対応。x86 と ARM(Apple Silicon Mac を含む)をサポート。
|
||||
VPS、ホームサーバー、ローカルマシンに対応。x86 と ARM(Apple Silicon Mac を含む)をサポート。リポジトリのクローンは不要です。2 つのファイルをダウンロードするだけで始められます:
|
||||
|
||||
1. `.env.example` を `.env.local` にコピーし、API キーを設定([設定ガイド](#設定ガイド)を参照)
|
||||
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 キーを設定し([設定ガイド](#設定ガイド)を参照)、起動します:
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user