The GNU Compiler Collection is a compiling system that supports several languages.
471
The GNU Compiler Collection is a compiling system that supports several languages.
This image is based on https://github.com/docker-library/gcc
To compile, but not run your app inside the Docker instance, you can write something like:
docker run -it --rm \
--mount type=bind,source="$(pwd)",target=/usr/src/myapp \
--workdir /usr/src/myapp \
docker.io/boxcutter/gcc:13 -std=c++17 -O2 myapp.c -o myapp -Wall
FROM docker.io/boxcutter/gcc:13
WORKDIR /usr/src/myapp
COPY . .
RUN gcc -o myapp main.c
CMD ["./myapp"]
Content type
Image
Digest
sha256:12329277d…
Size
414.3 MB
Last updated
12 months ago
docker pull boxcutter/gcc:14.3-noble