Skip to content

Smallest Bun Docker image using Ubuntu Chisel

Notifications You must be signed in to change notification settings

shyim/bun-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Bun Docker Image

This Repository builds Bun Docker image for amd64/arm64 with Ubuntu Chisel to produce a very small docker image.

How is the Docker Image so small?

Chisel installs only the bare minimum of the required packages aka only library files. So to the pre-built bun binary, only an additional 8MB of libraries are added.

This reduces also the attack vector of the image, as nothing is installed as bun + bash and the required libraries.

❯ docker images
REPOSITORY                 TAG          IMAGE ID       CREATED          SIZE
ghcr.io/shyim/bun-docker   latest       090c026d6905   14 minutes ago   95.3MB
oven/bun                   distroless   5833b222de8f   3 days ago       98.4MB
oven/bun                   alpine       2499bbe5831f   3 days ago       115MB
oven/bun                   latest       ad22f9f48cb6   3 days ago       204MB

Usage

docker run -rm -it ghcr.io/shyim/bun-docker:latest

About

Smallest Bun Docker image using Ubuntu Chisel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages