• xiezhi's avatar
    参考 express.js-template 优化 Docker 配置 · 4aad1a98
    xiezhi authored
    - Dockerfile: 使用多阶段构建,优化镜像大小
    - 添加 npm 镜像源配置
    - 正确复制构建结果和资源文件
    - 设置标准环境变量
    - docker-entrypoint.sh: 使用 sh 而不是 bash
    - 添加资源路径处理逻辑
    - 统一启动命令为 npm run serve
    - 与 express.js-template 保持一致的风格
    4aad1a98
docker-entrypoint.sh 450 Bytes