Covers Docker containerization for Bun applications with the official oven/bun images and their variants (slim, alpine, distroless). You get production-ready multi-stage builds, hot reload configs for development, and examples for compiled binaries that skip the Bun runtime entirely. The security section is practical: it emphasizes that Bun blocks post-install scripts by default and points you to the dependency-upgrade skill for supply chain hardening with Socket CLI. Includes docker-compose setups, health checks, and a solid .dockerignore. Use this when you're deploying Bun apps and want to avoid reinventing Dockerfile patterns. The image size comparison table is helpful for picking the right base image for your constraints.

skills.sh installs
343
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill bun-docker --agent claude-code

Installs into .claude/skills of the current project.

Files

Bun Docker

Deploy Bun applications in Docker containers using official images.

Official Images

# Latest stable
docker pull oven/bun

# Specific version
docker pull oven/bun:1

# 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

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 Build (Production)

# Build stage
FROM oven/bun:1 AS builder

WORKDIR /app

COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile

COPY . .
RUN bun run build

# Production stage
FROM oven/bun:1-slim AS production

WORKDIR /app

# Copy only production dependencies
COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile --production

# Copy built assets
COPY --from=builder /app/dist ./dist

# Run as non-root
USER bun

EXPOSE 3000
CMD ["bun", "run", "dist/index.js"]

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Category
DevOps & CI/CD
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1cinience avataralicloud-observability-sls-log-querycinience/alicloud-skillsQuery and troubleshoot logs in Alibaba Cloud Log Service (SLS) using query|analysis syntax and the Python SDK. Use for time-bounded log search, error investigat340skills.sh installs
2onewave-ai avatarpipeline-health-analyzeronewave-ai/claude-skillsAnalyze pipeline health, identify stalled deals, predict close probability, and suggest actions to move deals forward. Improves forecast accuracy and prevents r334skills.sh installs
3bobmatnyc avatarterraformbobmatnyc/claude-mpm-skillsTerraform infrastructure-as-code workflow patterns: state and environments, module design, safe plan/apply, drift control, and CI guardrails332skills.sh installs
4guia-matthieu avatarimage-to-3d-pipelineguia-matthieu/clawfu-skillsTransformez une image 2D en modèle 3D animé prêt pour le web ou le jeu en moins de 30 minutes, en utilisant le workflow Dilum Sanjaya (Hunyuan3D + Mixamo). Use 320skills.sh installs
5pzep1 avatarxcode-buildpzep1/xcode-build-skillBuild and run iOS/macOS apps using xcodebuild and xcrun simctl directly. Use when building Xcode projects, running iOS simulators, managing devices, compiling S318skills.sh installs
6aviz85 avatargh-pages-deployaviz85/claude-skills-libraryDeploy static or interactive frontend content to GitHub Pages using gh CLI. Use when the user wants to publish, share, or make accessible any HTML/CSS/JS conten312skills.sh installs