Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/docker-hub-frolvlad/docker-alpine-gcc
The smallest Docker image with C compiler (GCC) (130MB)
https://github.com/docker-hub-frolvlad/docker-alpine-gcc
alpine c docker-image gcc
Last synced: about 2 hours ago
JSON representation
The smallest Docker image with C compiler (GCC) (130MB)
- Host: GitHub
- URL: https://github.com/docker-hub-frolvlad/docker-alpine-gcc
- Owner: Docker-Hub-frolvlad
- License: mit
- Created: 2015-04-06T11:50:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-21T11:55:54.000Z (11 months ago)
- Last Synced: 2024-04-20T20:54:25.573Z (7 months ago)
- Topics: alpine, c, docker-image, gcc
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/frolvlad/alpine-gcc/
- Size: 11.7 KB
- Stars: 54
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Docker Stars](https://img.shields.io/docker/stars/frolvlad/alpine-gcc.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-gcc/)
[![Docker Pulls](https://img.shields.io/docker/pulls/frolvlad/alpine-gcc.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-gcc/)C (GCC) Docker image
====================This image is based on Alpine Linux image, which is only a 5MB image, and contains
[C compiler](https://gcc.gnu.org/) (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`](https://hub.docker.com/r/frolvlad/alpine-gxx/)
Usage Example
-------------```bash
$ echo -e '#include \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'!