diff --git a/gcc/README-content.md b/gcc/README-content.md index ad6c54944..ea18f948d 100644 --- a/gcc/README-content.md +++ b/gcc/README-content.md @@ -7,13 +7,13 @@ The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Proje ## Start a gcc instance running your app -For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. +For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. In your Dockerfile, you can something along the lines of the following will compile and run your project. FROM gcc ADD . /usr/src/myapp WORKDIR /usr/src/myapp - RUN gcc -o myapp myapp.c - CMD ["./myapp"] + RUN gcc -o executable main.c + CMD ["./executable"] Then run the commands to build and run the docker image. diff --git a/gcc/README.md b/gcc/README.md index fdde116a1..9c073df8d 100644 --- a/gcc/README.md +++ b/gcc/README.md @@ -7,13 +7,13 @@ The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Proje ## Start a gcc instance running your app -For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. +For this image, the most straight-forward use is to use a gcc container as both the build environment as well as the runtime environment. In your Dockerfile, you can something along the lines of the following will compile and run your project. FROM gcc ADD . /usr/src/myapp WORKDIR /usr/src/myapp - RUN gcc -o myapp myapp.c - CMD ["./myapp"] + RUN gcc -o executable main.c + CMD ["./executable"] Then run the commands to build and run the docker image.