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