Skip to content

rsc1975/bun-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Last Commit Docker version Docker image

Docker image for bun

Based on alpine linux and ubuntu, the building process is fired when a new version of bun is detected and a scheduled daily image based on bun canary version

  • On new bun version, tags created: latest and x.y.z based on alpine & ubuntu and x.y.z-ubuntu based on ubuntu:22.04
  • Scheduled every 12h on bun canary version, tag created: canary (based on alpine)

The image dvlprtech/bun is published in DockerHub

Getting started

docker run -it --rm dvlprtech/bun --version

It will output for instance:

0.1.9

To launch a local file we need to map the file dir to the container:

echo 'console.log(`Hello ${process.argv[process.argv.length - 1] || "World"} !!`);' > hi.js
docker run -it --rm -v$(pwd):/app dvlprtech/bun run /app/hi.js Folks

It will show:

Hello Folks !!

Yo can also use the image as base for your bun own project:

#Dockerfile
FROM dvlprtech/bun:latest
...

About

Dockerizing bun.sh engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published