HUB
Sign inSign up

frolvlad/alpine-gcc

By frolvlad

•Updated over 1 year ago

The smallest Docker image with gcc and g++ (114MB)

ImageBuildkit cache
26

50K+

frolvlad/alpine-gcc repository overview

Docker Stars Docker Pulls

⁠C (GCC) Docker image

This image is based on Alpine Linux image, which is only a 5MB image, and contains C compiler⁠ (GCC package).

This image is only 130MB on disk.

NOTE: If you are looking for C++ (GCC) Docker image, there is one: frolvlad/alpine-gxx⁠

⁠Usage Example

$ echo -e '#include <stdio.h>\nint main() { printf("Hello World\\n"); }' > qq.c
$ docker run --rm -v `pwd`:/tmp frolvlad/alpine-gcc gcc --static /tmp/qq.c -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'!

Tag summary
Recent tags
Content type
Image
Digest
sha256:60c7ae41f…
Size
65.2 MB
Last updated
over 1 year ago
docker pull frolvlad/alpine-gcc:latest