Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker image for BusyBox's sh
Full Description

Docker image for BusyBox's sh

Repository name in Docker Hub: williamyeh/busybox-sh

This Docker image contains only the "SH" part of BusyBox.

Purpose

To build a minimal Docker image, you may begin with scratch, and then add something (usually static binary files without any runtime dependency) into it.

Sometimes we'd also like to put simple wrapper scripts into the image, too. Most people will begin with base images such as busybox, progrium/busybox, or alpine. However, even the BusyBox itself can be slimed down further, since the only thing needed here is a sh-compatible shell to interpret and execute our *.sh files.

For this case, I build a minimal Docker base image that contains only a statically linked program: the "SH" part ("HUSH") of BusyBox.

Features

  • Highly compatible with sh (Bourne Shell).

  • Small (about 989 kB).

Usage

Mostly used as a base image. For example:

# First, inherit from this image...
FROM williamyeh/busybox-sh

# Then, put your static binaries and scripts below...
COPY ...
ADD  ...

About the rootfs

To build the rootfs on your own, see instructions for more details.

Dependencies

  • scratch.

History

  • 1.0 - Initial release.

Author

William Yeh, william.pjyeh@gmail.com

License

This image contains two components; each has its own license statement, respectively.

  1. The first part is BusyBox. This part is licensed under GPLv2. See the license statement of BusyBox for more details.

  2. The remain part, written by me, is released to public domain. See LICENSE file for details.

Docker Pull Command
Owner
williamyeh
Source Repository