Important
This project is a fork of the official Bun repository.
Mini Bun Docker Image aims to create a compact and efficient Docker image for Bun by leveraging UPX (Ultimate Packer for eXecutables) to compress the Bun binary. The result is a significantly smaller container image without compromising functionality.
Dockerfile: Defines the multi-stage build process, including UPX compressiondocker-entrypoint.sh: Entry point script for the Docker container.github/workflows/:publish.yml: Workflow for building and publishing the Docker image
To use this optimized Bun Docker image:
-
Pull the image from Docker Hub:
docker pull popwers/mini-bun:latest
-
Run a container:
docker run -it popwers/mini-bun:latest
If you want to build the image locally:
-
Clone the repository:
git clone https://github.com/popwers/mini-bun.git cd mini-bun -
Build the Docker image:
docker build -t mini-bun .
This project uses GitHub Actions for automation:
- Publish Workflow: Builds the Docker image for multiple architectures (amd64, arm64) and pushes it to Docker Hub
- Version Check Workflow: Automatically checks for new Bun releases and triggers a rebuild if a new version is available
