A Docker container to build C++ projects.
10K+
Docker file to compile C++ code
docker build -t docker_cpp -f Dockerfile-development .
This docker will commmand will mound the current directory insside the /build directory. The reason to mount the directory is to keep the compiled binery in the host OS.
docker run -v "c:\build:/build" docker_cpp
docker run -v "/src:/build" docker_cpp
Once inside the bash file execute
g++ helloworld.cpp
./a.out
exit
The a.out file will stay on your host OS after the container exits.
Content type
Image
Digest
Size
155.7 MB
Last updated
almost 7 years ago
docker pull code4clouds/docker_cpp