The smallest Docker image with C and C++ compilers (GCC) (154MB)
1M+
This image is based on Alpine Linux image, which is only a 5MB image, and contains C/C++ compilers (gcc/g++ packages).
Download size of this image is only:
$ echo -e '#include <iostream>\nint main() { std::cout << "Hello World\\n"; }' > qq.cpp
$ docker run --rm -v `pwd`:/tmp frolvlad/alpine-gxx c++ --static /tmp/qq.cpp -o /tmp/qq
Once you have run these commands you will have qq executable in your current directory and if you
execute it, you will get printed 'Hello World'!
Content type
Image
Digest
sha256:3463a8c9b…
Size
85.6 MB
Last updated
over 1 year ago
docker pull frolvlad/alpine-gxx