bun-docker
仓库创建 2025年11月8日最近提交 29 天前SkillHot 收录 22 天前
▸ 精选理由
方便将 Bun 服务容器化,适合生产部署与 CI 场景。
▸ 风险提示
拉取官方镜像需网络访问,可能下载较大镜像。
这个 Skill 做什么
在 Docker 中运行与部署 Bun 应用,包含官方镜像与 Dockerfile 示例。
把 Bun 应用打包进 Docker 容器,提供 oven/bun 官方镜像和 Dockerfile 示例,方便在容器化环境部署。部署、CI/CD 或在云上运行 Bun 服务时会用到,能直接选镜像版本和变体。特别之处是列出了不同体积和底盘的镜像(如 slim、alpine、distroless),便于权衡大小与依赖。
▸ 展开 SKILL.md 英文原文
Use for Docker with Bun, Dockerfiles, oven/bun image, containerization, and deployments.
180
Stars
28
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/secondsky/claude-skills/main/plugins/bun/skills/bun-docker/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/secondsky/claude-skills/main/plugins/bun/skills/bun-docker/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Bun Docker Deploy Bun applications in Docker containers using official images. ## Official Images ```bash # Latest stable docker pull oven/bun # Specific version docker pull oven/bun:1.0.0 # Variants oven/bun:latest # Full image (~100MB) oven/bun:slim # Minimal image (~80MB) oven/bun:alpine # Alpine-based (~50MB) oven/bun:distroless # Distroless (~60MB) oven/bun:debian # Debian-based (~100MB) ``` ## Basic Dockerfile ```dockerfile FROM oven/bun:1 AS base WORKDIR /app # Install dependencies COPY package.json bun.lockb ./ RUN bun install --frozen-lockfile # Copy source COPY . . # Run EXPOSE 3000 CMD ["bun", "run", "src/index.ts"] ``` ## Multi-Stage Buil
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有