This repository provides a lightweight Docker image for modern C++ development, using Ubuntu 24.04 as the base and GCC/G++ 14 as the default compiler.
- Ubuntu 24.04 for a recent Linux environment
- GCC/G++ 14 set as default compilers
- Essential build tools:
cmake,ninja-build,valgrind, etc. - Common utilities for networking and debugging (
net-tools,iproute2,gdb,strace, etc.) - Non-root user
cppdevwith passwordless sudo
docker pull brakmic/cppdev:latestdocker run -it --rm -v $(pwd):/workspace brakmic/cppdev:latest-itstarts an interactive session.--rmcleans up the container after you exit.-v $(pwd):/workspacemounts the current directory into the/workspacefolder inside the container, so you can work with your local files.
Inside the container, you have:
- GCC/G++ 14
cmake,ninja, and other build toolsgit,nano, and other essential utilities
By default, you’ll be dropped into a bash shell as the cppdev user. Any changes in /workspace will be reflected on your host machine’s current directory due to the volume mount.