A daily-built multi-architecture Docker image for debug builds of Bun that contains:
- A base image with a pre-setup Bun development environment
- A pre-built image with compiled artifacts
Both images are published to GitHub Container Registry daily for both AMD64 and ARM64 architectures.
Note: this is not for developing applications with Bun, but rather for developing Bun itself.
docker pull ghcr.io/oven-sh/bun-development-docker-image:latest
This image contains:
- Debian bookworm slim as the base OS
- Bun repository cloned to
/workspace/bun
- Development dependencies installed
- Bootstrap script already executed
- Modern GCC/G++ 12 with full C++20 support (including constexpr std::arraystd::string)
docker pull ghcr.io/oven-sh/bun-development-docker-image:prebuilt
This image includes everything in the base image, plus:
- Pre-compiled build artifacts from running
bun run build
# Run the base development image
docker run -it --rm ghcr.io/oven-sh/bun-development-docker-image:latest
# Run the pre-built image
docker run -it --rm ghcr.io/oven-sh/bun-development-docker-image:prebuilt
If you need a specific architecture:
# AMD64
docker run -it --rm --platform linux/amd64 ghcr.io/oven-sh/bun-development-docker-image:latest
# ARM64
docker run -it --rm --platform linux/arm64 ghcr.io/oven-sh/bun-development-docker-image:latest
To work on the Bun codebase with your local editor:
docker run -it --rm -v $(pwd):/workspace/local ghcr.io/oven-sh/bun-development-docker-image:latest
latest
: Multi-platform base development imageprebuilt
: Multi-platform image with pre-built artifactsYYYY-MM-DD
: Date-specific base development imageprebuilt-YYYY-MM-DD
: Date-specific image with pre-built artifacts
Every daily build includes compressed build artifacts for both AMD64 and ARM64 architectures, uploaded as GitHub Actions artifacts.
To build the image locally:
# Build base image
docker build -t bun-dev:local --target base .
# Build pre-built image
docker build -t bun-dev:prebuilt --target prebuilt .