Skip to content

Popwers/mini-bun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bun Logo     Docker Logo

Alpine Linux Logo

🍞 Mini Bun Docker Image

Important

This project is a fork of the official Bun repository.

🚀 Project Overview

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.

📁 Project Structure

  • Dockerfile: Defines the multi-stage build process, including UPX compression
  • docker-entrypoint.sh: Entry point script for the Docker container
  • .github/workflows/:
    • publish.yml: Workflow for building and publishing the Docker image

🏁 Getting Started

To use this optimized Bun Docker image:

  1. Pull the image from Docker Hub:

    docker pull popwers/mini-bun:latest
  2. Run a container:

    docker run -it popwers/mini-bun:latest

🛠️ Building the Image Locally

If you want to build the image locally:

  1. Clone the repository:

    git clone https://github.com/popwers/mini-bun.git
    cd mini-bun
  2. Build the Docker image:

    docker build -t mini-bun .

🤖 GitHub Actions Workflow

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

🙏 Credits

  • Bun - The JavaScript runtime
  • UPX - The Ultimate Packer for eXecutables

📚 Additional Resources

About

A compressed Bun Docker running on Alpine

Resources

Stars

Watchers

Forks

Contributors