mirror of
https://github.com/shy3130/tick-stock-panel.git
synced 2026-11-02 10:26:13 +00:00
fix(docker): 镜像内置 插件依赖(Node + node_modules) (#59)
Docker 运行时镜像(python:3.11-slim)既无 node 也无 node_modules, 导致 插件 availability() 恒返回 false, 用户反馈打成 docker 后无法安装。 多阶段构建: - 新增 -builder 阶段(node:20-bookworm-slim)npm ci 装依赖 - runtime 阶段 apt 装 nodejs(满足 engines>=18, 自带全部动态依赖) - COPY -from 将 vendored node_modules 拷到与 bridge.mjs 同目录 (/app/app/plugins//node_modules), 命中 bridge.mjs loadSDK() 第一候选路径 用户 docker pull 后开箱即用, 无需进容器手动 npm install。 同步更新 plugin.yaml install_hint 文案与相关文档。 Co-authored-by: shy3130 <shy3130@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
shy3130
parent
bd0213d3e4
commit
5585632304
@@ -45,6 +45,8 @@ docker compose up --build
|
||||
|
||||
Docker 采用两阶段构建,前端 dist 拷进后端镜像,**单容器**运行,数据完全在自己手里。
|
||||
|
||||
> 💡 镜像已内置 Node.js 运行时并预装 **** 插件依赖,Docker 部署下开箱即用,无需手动 `npm install`。
|
||||
|
||||
更新到新版本:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user