Agent skill · software engineering · secondsky
bun-docker
Use for Docker with Bun, Dockerfiles, oven/bun image, containerization, and deployments.
Why this skill is useful
Provides specific Dockerfile examples and multi-stage build patterns for deploying Bun applications that the AI wouldn't reliably generate on its own.
What it needs
Requires docker installed locally. About 4k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Bun Docker Deploy Bun applications in Docker containers using official images. Official Images Basic Dockerfile Multi-Stage Build (Production) Alpine Image Distroless Image Docker Compose Hot Reload in Development Compiled Binary SQLite with Docker Health Checks Environment Variables Caching Optimization Secure Installation When installing packages in Docker builds, follow supply chain security best practices: Block post-install scripts — Bun disables them by default; allow specific packages via trustedDependencies Pin dependency versions — Use exact versions in package.json for reproducible builds Audit before installing — Run socket package score npm <pkg> to check packages before they reach your image Load the dependency-upgrade skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement. Security Best Practices .dockerignore Common Commands Common Errors Error Cause Fix ------- ------- ----- bun.lockb not found Missing lockfile Run bun install locally EACCES permission File ownership Use --chown=bun:bun OOM killed Memory limit Increase container memory No space left Large layers Use multi-stage builds When to Load References Load references/optimization.md when: Image size reduction Layer caching Build performance Load references/kubernetes.md when: K8s deployment Horizontal scaling Service mesh
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/bun-docker