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:
latestandx.y.zbased on alpine &ubuntuandx.y.z-ubuntubased 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
docker run -it --rm dvlprtech/bun --versionIt will output for instance:
0.1.9To 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 FolksIt will show:
Hello Folks !!
Yo can also use the image as base for your bun own project:
#Dockerfile
FROM dvlprtech/bun:latest
...