Docker Image for programming language C.
You can manually build image by below commands.
$ git clone nacyot/docker-programming-languages
$ cd docker-programming-languages/c-cc-apt
$ docker build -t nacyot/c-cc:apt .
You can also pull image from docker hub.
$ docker pull -t nacyot/c-cc:apt
$ docker run -i -t -v $(pwd):/source nacyot/c-cc:apt cc --version
cc (Ubuntu apt-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ chmod +x build.sh run.sh
$ docker run -i -t -v $(pwd):/source nacyot/c-cc:apt /source/build.sh
$ ./hello_world
Hello, World
#include<stdio.h>
int main(void) {
printf("Hello, World\n");
return 0;
}
cc -o hello_world hello_world.c
/source/hello_world
Content type
Image
Digest
sha256:411ad18a7…
Size
187.9 MB
Last updated
almost 11 years ago
docker pull nacyot/c-cc:4.8.2