@devflow-tools/plugin-docker 0.8.10 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @devflow-tools/plugin-docker
|
|
2
2
|
|
|
3
|
-
Docker
|
|
3
|
+
Docker 专家插件 — 镜像优化、Compose 编排、安全扫描、多阶段构建。
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -8,11 +8,34 @@ Docker expert plugin for DevFlow — image optimization, Compose orchestration,
|
|
|
8
8
|
npm install @devflow-tools/plugin-docker
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## MCP Tools
|
|
12
12
|
|
|
13
|
-
|
|
|
14
|
-
|
|
15
|
-
| `
|
|
13
|
+
| Tool | 说明 | 关键参数 |
|
|
14
|
+
|------|------|---------|
|
|
15
|
+
| `docker_dockerize_project` | 项目 Docker 化:分析项目 → 多阶段 Dockerfile → Compose → 构建验证 | `projectRoot` |
|
|
16
|
+
|
|
17
|
+
## Knowledge Sources
|
|
18
|
+
|
|
19
|
+
| 来源 | URL | SPA |
|
|
20
|
+
|------|-----|-----|
|
|
21
|
+
| Docker 官方文档 | https://docs.docker.com | Yes |
|
|
22
|
+
|
|
23
|
+
## Memory
|
|
24
|
+
|
|
25
|
+
插件自动注入以下最佳实践:
|
|
26
|
+
- 多阶段构建:build 阶段 + runtime 阶段分离
|
|
27
|
+
- `.dockerignore` 排除 node_modules、测试、.git
|
|
28
|
+
- 镜像使用 Alpine/Distroless 最小化攻击面
|
|
29
|
+
- Compose 使用 profiles 区分环境
|
|
30
|
+
- 非 root 用户运行应用(`USER node`)
|
|
31
|
+
- 安全扫描集成(docker scout / trivy)
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# 在 Claude Code 中使用
|
|
37
|
+
/devflow:docker 分析项目并生成 Dockerfile
|
|
38
|
+
```
|
|
16
39
|
|
|
17
40
|
## License
|
|
18
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/plugin-docker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7872bccedbacd09cc92b983f30b3702db6878125"
|
|
30
30
|
}
|