livingdocs/editor-base该Docker镜像专为Livingdocs Editor的测试和构建流程设计,提供一致、隔离的环境,简化开发者在测试和构建Livingdocs Editor时的环境配置工作。镜像内置构建和测试所需的依赖工具与运行时环境,确保在不同平台和环境中获得一致的构建结果。
bash# 拉取镜像(假设镜像名为livingdocs/editor-builder) docker pull livingdocs/editor-builder # 运行镜像并挂载项目目录执行构建 docker run -it --rm \ -v $(pwd):/app \ -w /app \ livingdocs/editor-builder \ npm run build # 运行测试命令 docker run -it --rm \ -v $(pwd):/app \ -w /app \ livingdocs/editor-builder \ npm run test
| 环境变量 | 描述 | 默认值 |
|---|---|---|
NODE_ENV | 运行环境标识(development/test/production) | development |
BUILD_OUTPUT_DIR | 构建产物输出目录 | /app/dist |
TEST_REPORT_DIR | 测试报告输出目录 | /app/test-reports |
yamlversion: '3' services: editor-builder: image: livingdocs/editor-builder volumes: - ./:/app working_dir: /app environment: - NODE_ENV=production - BUILD_OUTPUT_DIR=/app/build command: npm run build
command字段实现



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务