@@ -147,7 +147,87 @@ report path: coderio/<design-name_node-id>/process/validation/index.html
147147| ` validate ` | ` val ` | Run validation on generated code |
148148| ` images ` | - | Download and process Figma assets |
149149
150- ### Option 2: Skill (Portable Embedded Workflow)
150+ ### Option 2: Docker
151+
152+ Best for portable environments without Node.js installation.
153+
154+ #### 1. Prerequisites
155+
156+ - [ Docker] ( https://docs.docker.com/get-docker/ )
157+ - [ Figma Personal Access Token] ( https://www.figma.com/developers/api#access-tokens )
158+ - LLM API Key ([ Anthropic] ( https://console.anthropic.com/ ) | [ OpenAI] ( https://platform.openai.com/ ) | [ Google] ( https://aistudio.google.com/ ) )
159+
160+ #### 2. Installation
161+
162+ ``` bash
163+ docker pull crpi-p4hwwrt00km3axuk.cn-shanghai.personal.cr.aliyuncs.com/coderio/coderio:v1.0.0
164+ ```
165+
166+ #### 3. Configuration
167+
168+ Create a working directory and ` config.yaml ` :
169+
170+ ``` bash
171+ mkdir -p ./coderio-app && cd ./coderio-app
172+ cat > config.yaml << 'EOF '
173+ model:
174+ provider: openai # anthropic | openai | google
175+ model: gemini-3-pro-preview
176+ baseUrl: https://api.anthropic.com
177+ apiKey: your-api-key-here
178+
179+ figma:
180+ token: your-figma-token-here
181+
182+ debug:
183+ enabled: false
184+ EOF
185+ ```
186+
187+ #### 4. Usage
188+
189+ ``` bash
190+ docker run -ti --rm \
191+ --network=host \
192+ -v ${PWD} :/app \
193+ -v ./config.yaml:/root/.coderio/config.yaml \
194+ crpi-p4hwwrt00km3axuk.cn-shanghai.personal.cr.aliyuncs.com/coderio/coderio:v1.0.0 bash
195+ ```
196+
197+ Once inside the container, use CodeRio commands:
198+
199+ ``` bash
200+ # Convert Figma design to code (default mode: code only)
201+ coderio d2c -s ' https://www.figma.com/design/your-file-id/...'
202+
203+ # Full mode: Generate code + visual validation + auto-refinement
204+ coderio d2c -s ' https://www.figma.com/design/your-file-id/...' -m full
205+ ```
206+
207+ #### 5. Run Your Project
208+
209+ ``` bash
210+ # Navigate to generated project
211+ cd coderio/< design-name_node-id> /my-app
212+
213+ # Install dependencies
214+ pnpm install
215+
216+ # Start dev server
217+ pnpm dev
218+
219+ # 🎉 Open http://localhost:5173
220+ ```
221+
222+ #### 6. View Validation Report
223+
224+ Generated files are mounted to your host machine. Open the validation report in your browser:
225+
226+ ```
227+ ./coderio/<design-name_node-id>/process/validation/index.html
228+ ```
229+
230+ ### Option 3: Skill (Portable Embedded Workflow)
151231
152232Best for control and precision using AI Agents.
153233
0 commit comments