Small Docker image with gcc and g++ (153 MB)
10K+
This image is based on Alpine Linux image and contains C/C++ compilers (gcc/g++ packages).
Download size of this image is only:
$ echo -e '#include <stdio.h>\nint main() { printf("Hello World\\n"); }' > example.c
$ docker run --rm -v `pwd`:/tmp skantar/linux-gcc gcc --static /tmp/example.c -o /tmp/example
Once you have run these commands you will have example executable in your current directory and if you
execute it, you will get printed 'Hello World'!
Content type
Image
Digest
Size
45.4 MB
Last updated
almost 10 years ago
docker pull skantar/linux-gcc