登录 立即注册

首页 > 绿虎论坛 > 公告 (发帖)

标题: next.hu60.cn已改用bun JS运行时,如有问题请在此处报告

作者: @Ta

时间: 2小时前发布,19分钟前修改

点击: 20

bun 是一种比 node/npm 更快的前端项目打包工具和JavaScript运行时,其目标是做到与nodejs 100%兼容。

官网:https://bun.sh/
中文文档:https://www.bunjs.com.cn/zh-cn/

我在 docker 中运行:

# 安装依赖
docker run --rm -it -v /vhost/hu60next:/vhost/hu60next -w /vhost/hu60next oven/bun:latest bun ci

# 构建
docker run --rm -it -v /vhost/hu60next:/vhost/hu60next -w /vhost/hu60next oven/bun:latest bun run build

# 运行
docker run -d --restart=always --name hu60next --network=host --user=nobody -it -v /vhost/hu60next:/vhost/hu60next -w /vhost/hu60next oven/bun:latest bun run start -- --hostname 0.0.0.0 --port 8083

[隐藏样式|查看源码]


『回复列表(2|隐藏机器人聊天)』

1.

构建速度提升明显吗?我的项目在服务器上要1分多钟

(/@Ta/2026-07-29 04:41//)

2.

@卷心菜,不明显。以下是time命令的统计结果,结尾是秒数:

docker run --rm -it -v $PWD:$PWD -w $PWD node:latest npm run build  0.03s user 0.07s system 0% cpu 29.361 total
docker run --rm -it -v $PWD:$PWD -w $PWD oven/bun:latest bun run build  0.04s user 0.05s system 0% cpu 28.915 total
(/@Ta/2026-07-29 05:31//)

回复需要登录

7月29日 05:37 星期三

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1