Sign inSign up

skantar/linux-gcc

By skantar

Updated almost 10 years ago

Small Docker image with gcc and g++ (153 MB)

Image
1

10K+

skantar/linux-gcc repository overview

Docker StarsDocker Pulls

C/C++ (GCC) Docker image

This image is based on Alpine Linux image and contains C/C++ compilers (gcc/g++ packages).

Download size of this image is only:

Usage Example

$ 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'!

Tag summary

Content type

Image

Digest

Size

45.4 MB

Last updated

almost 10 years ago

docker pull skantar/linux-gcc