A minimal Docker image combining Bun runtime and Git — nothing more, nothing less.
976
A minimal Docker image combining Bun runtime and Git — nothing more, nothing less.
The official oven/bun image does not include Git, which makes it inconvenient for
CI/CD pipelines that need to clone repositories, run install scripts, or interact
with version control during the build process.
This image solves that by copying the Bun binary directly into alpine/git,
keeping the final image as small as possible (~50MB).
docker pull yourname/bun-git:latest
# Run a Bun script
docker run --rm -v $(pwd):/app yourname/bun-git bun run index.ts
# Use in your own Dockerfile
FROM yourname/bun-git:latest
WORKDIR /app
COPY . .
RUN bun install
CMD ["bun", "run", "start"]
| Tag | Bun Version | Base |
|---|---|---|
latest | latest stable | alpine/git |
bun1-alpine | latest v1.x | alpine/git |
bun{version}-alpine | locked version | alpine/git |
Tags are generated automatically based on the actual Bun version bundled in the image.
# Pin to a specific version (recommended for production)
docker pull yourname/bun-git:bun1.1.38-alpine
# Track latest v1.x (safe from major version breaking changes)
docker pull yourname/bun-git:bun1-alpine
# Always use the latest
docker pull yourname/bun-git:latest
This image is rebuilt automatically every week via GitHub Actions to pick up the latest Bun releases and security patches from the base image.
You can always find the latest build status in the Actions tab.
| Tool | Version |
|---|---|
bun | latest stable |
bunx | latest stable (symlinked) |
git | latest alpine stable |
MIT © Changsheng Zhu
Content type
Image
Digest
sha256:a1cc76384…
Size
46.8 MB
Last updated
2 days ago
docker pull vimcaw/bun-git:bun-1.3.14-alpine