Skip to content

Conversation

@maxhuebler
Copy link
Contributor

@maxhuebler maxhuebler commented Dec 2, 2025

@SuperQ @discordianfish

Fixes #50 #64 #65

Description

This PR introduces a new prom/busybox:alpine image variant based on Alpine Linux's static busybox binary.

Changes

  • New Image Variant (alpine):

    • Added alpine/Dockerfile which performs a multi-stage build.
    • Uses alpine:latest as a builder to extract busybox-static, ca-certificates, and tzdata.
    • Constructs a minimal FROM scratch final image containing only the necessary files and symlinks (via busybox --install).
    • This variant uses musl-libc and benefits from Alpine's timely security patches.
  • Documentation:

    • Updated README.md to include details about the new prom/busybox:alpine tag.
    • Updated Makefile to include alpine in build, push, and manifest targets for all supported architectures (amd64, armv7, arm64, riscv64, ppc64le, s390x).

Motivation

The addition of the Alpine-based image allows consumers to use a static busybox binary with a smaller footprint and faster security updates compared to the existing glibc/uclibc variants.

Similar pull requests

@maxhuebler maxhuebler changed the title Fix build issues and update .circleci config Add prom/busybox:alpine image and fix build issues Dec 2, 2025
Signed-off-by: Max Huebler <max@huebler.us>
Signed-off-by: Max Huebler <max@huebler.us>
Signed-off-by: Max Huebler <max@huebler.us>
@SuperQ
Copy link
Member

SuperQ commented Dec 2, 2025

I would prefer to split the alpine work from the CI improvements.

Signed-off-by: Max Huebler <max@huebler.us>
Signed-off-by: Max Huebler <max@huebler.us>
@maxhuebler
Copy link
Contributor Author

I would prefer to split the alpine work from the CI improvements.

Sure, I removed the CI improvements and only left alpine-specific changes. However, I did leave the fix for the build failure.

@SuperQ
Copy link
Member

SuperQ commented Dec 2, 2025

I meant that I want to just fix the build failure first. The. Do the alpine change separately.

@maxhuebler
Copy link
Contributor Author

maxhuebler commented Dec 2, 2025

I meant that I want to just fix the build failure first. The. Do the alpine change separately.

Ah okay, sure I'll create a new PR with just the build failure fix first.

Edit: Created PR #67

@maxhuebler maxhuebler changed the title Add prom/busybox:alpine image and fix build issues Add prom/busybox:alpine image Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: Use the Alpine build of BusyBox for greater security

2 participants