ALPack is a portable tool written in Rust for creating and managing Alpine Linux rootfs. It uses proot and bubblewrap (bwrap) to provide isolated environments without requiring superuser privileges.
- 📦 Easily create and manage portable Alpine rootfs.
- ⚡ Fast and minimal Alpine Linux environment setup;
- 🧪 Safe sandboxing for testing or restricted systems;
- 📆 Command execution inside containers;
- 📁 Support for multiple rootfs directories and caches;
- 💪 Ideal for compiling static binaries using musl and Alpine's minimal toolchain.
- 🛠️ Work directly with APKBUILDs, simplifying the packaging process.
- 💼 Run anywhere without complex installation, thanks to its fully portable design.
- 🔒 Runs without root;
Lightweight, fast, and productivity-focused, ALPack bridges the gap between Alpine Linux flexibility and secure isolated environments.
Creating an Alpine rootfs:
$ ALPack setup
Run an Alpine rootfs:
$ ALPack
# or
$ ALPack run
Running in an isolated environment with proot or bwrap:
$ ALPack config --use-proot
# or
$ ALPack config --use-bwrap
You can install AlpineBox manually:
$ wget https://github.com/LinuxDicasPro/ALPack/releases/download/Continuous/ALPack
$ chmod +x ./ALPack
$ sudo mv ./ALPack /usr/bin/ALPack
Required proot or bubblewrap packages.
Alpine Linux uses the musl libc and provides toolchains that are naturally geared toward static compilation. Combined with the lightweight nature of AlpineBox:
- You can quickly set up isolated environments for building static binaries with
musl-gcc
; - Perfect for creating portable binaries that run across different Linux systems;
- Avoids linking with host system libraries;
- Small footprint and fast setup, ideal for CI/CD pipelines and embedded builds.
This project is licensed under the MIT License. See the LICENSE file for details.