From 88808b93b677973538d59826212a8b3aac8dc1a3 Mon Sep 17 00:00:00 2001 From: Zonghao Yuan <64521992+zonghaoyuan@users.noreply.github.com> Date: Sun, 7 Jun 2026 22:39:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=AE=80=E5=8C=96=20Docker=20=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=B5=81=E7=A8=8B=EF=BC=8C=E7=94=A8=20curl=20?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=9B=BF=E4=BB=A3=E4=BB=93=E5=BA=93=E5=85=8B?= =?UTF-8?q?=E9=9A=86=20(#53)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: simplify Docker deploy — download two files instead of cloning repo Co-Authored-By: Claude Opus 4.6 * fix(docs): use mkdir -p and guard against .env.local overwrite Co-Authored-By: Claude Opus 4.6 --------- Co-authored-by: Claude Opus 4.6 --- README.en.md | 12 +++++++++--- README.ja.md | 12 +++++++++--- README.md | 12 +++++++++--- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/README.en.md b/README.en.md index 761ba52..9354b03 100644 --- a/README.en.md +++ b/README.en.md @@ -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 diff --git a/README.ja.md b/README.ja.md index 2a015af..77cbcd1 100644 --- a/README.ja.md +++ b/README.ja.md @@ -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 diff --git a/README.md b/README.md index 0b086b6..cea0126 100644 --- a/README.md +++ b/README.md @@ -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