GCC trunk built from source every night for amd64 and arm64, C++ only, on the latest Ubuntu
6.2K
Nightly build of gcc from source, published to Docker Hub as
deanturpin/gcc:latest and deanturpin/gcc:YYYYMMDD by a
GitHub Actions workflow.
See the Dockerfile
and the source at github.com/deanturpin/gcc.
Links here are absolute, because this README is also the Docker Hub page, where relative links break.
Each build is native for amd64 and arm64 (Apple silicon included), under the
same tags, so Docker pulls the right one. Alongside the compiler the image
has make, cmake and ninja, so it builds whole projects. The trunk
commit it was built from is in its labels:
docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.revision" }}' deanturpin/gcc
Tags are latest and the build date, so deanturpin/gcc:20261008 is GCC
trunk as it stood that day. On Docker Hub the block below shows the latest
build's real output, written by each night's run.
$ date
Sat Oct 10 08:43:30 UTC 2026
$ docker run deanturpin/gcc g++ --version
g++ (GCC) 17.0.0 20261010 (experimental)
Copyright (C) 2026 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.
Mount your working directory to build local files with the latest compiler:
docker run --rm -v "$PWD:/w" -w /w deanturpin/gcc g++ -std=c++26 hello.cxx -o hello
Just for info, I use entr to speed up the oftentimes painful Dockerfile
writing experience.
ls Dockerfile | entr -cr docker build -t gcc .
Content type
Image
Digest
sha256:fe5475f37…
Size
1020.7 MB
Last updated
about 8 hours ago
docker pull deanturpin/gcc