Sign inSign up

nixue/notbun

By nixue

•Updated 25 days ago

notbun 是一个预配置权限的 Bun 运行容器,基于 Bun 官方镜像构建。

Image
Languages & frameworks
Data science
Operating systems
0

50

nixue/notbun repository overview

⁠notbun(Bun)

notbun 是一个预配置权限的 Bun 运行容器,基于 Bun 官方镜像构建。

⁠核心特性
  • 单一版本:跟随 Bun 官方 latest
  • 非 root 运行:默认创建 UID/GID 1000 的 appuser
  • 中文环境:时区 Asia/Shanghai,语言 zh_CN.UTF-8
  • 预置目录:/app/Bin、/app/Log、/app/Temp,权限 775
  • 数据卷:/app 声明为 VOLUME
  • 端口 8080
  • 参数透传:docker run 时镜像名后面的参数会追加到启动命令之后
⁠快速开始
docker pull nixue/notbun:latest
docker run -d \
  --name myapp \
  -p 8080:8080 \
  -v /宿主机/应用目录:/app \
  nixue/notbun:latest

容器自动执行:

bun run NotApp.ts
⁠入口变量
变量默认值说明
APP_TSNotApp.ts要运行的 .ts 或 .js 文件
⁠追加应用参数
docker run -d \
  -e APP_TS=server.ts \
  -v /宿主机/应用目录:/app \
  nixue/notbun:latest \
  --port 8080

Tag summary

Content type

Image

Digest

sha256:8109724cf…

Size

89.2 MB

Last updated

25 days ago

docker pull nixue/notbun