From a54068fec213842cfeddc60cb43e92ef4e7efe55 Mon Sep 17 00:00:00 2001 From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com> Date: Sun, 7 Dec 2025 11:49:01 +0900 Subject: [PATCH] docs: add --env-file option for Docker and simplify install instructions (#142) --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fed0352..1b70000 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,14 @@ docker run -d -p 3000:3000 \ ghcr.io/dayuanjiang/next-ai-draw-io:latest ``` +Or use an env file (create one from `env.example`): + +```bash +cp env.example .env +# Edit .env with your configuration +docker run -d -p 3000:3000 --env-file .env ghcr.io/dayuanjiang/next-ai-draw-io:latest +``` + Open [http://localhost:3000](http://localhost:3000) in your browser. Replace the environment variables with your preferred AI provider configuration. See [Multi-Provider Support](#multi-provider-support) for available options. @@ -133,8 +141,6 @@ cd next-ai-draw-io ```bash npm install -# or -yarn install ``` 3. Configure your AI provider: