Sign inSign up

ldemailly/tiniest

By ldemailly

Updated almost 9 years ago

Tiniest possible image that does something (prints Hello World!, returns 42)

Image
0

1.7K

ldemailly/tiniest repository overview

Small binaries

From searching online I found the following great read/resources:

And adapted and enhanced the example to create the tiniest image that does something (prints "Hello World!" and returns code 42)

For the gory details, see Makefile and compare the resulting tiny, 126 bytes (coming from tiny.s) vs hello (coming from hello.c) 5520 bytes.

If you have a docker login you can see the build status, otherwise you can pull the image: docker pull ldemaill/tiniest

Note that if you see this on docker hub, the source of this file with working links is on GitHub: https://github.com/ldemailly/experimental/blob/master/smallbinaries/README.md

Tag summary

Content type

Image

Digest

Size

212 Bytes

Last updated

almost 9 years ago

docker pull ldemailly/tiniest