From 3441ab84c0ca86758db5de0ceb794d79400de649 Mon Sep 17 00:00:00 2001 From: Moghedrin Date: Wed, 20 Aug 2014 14:06:33 -0600 Subject: [PATCH] Clarified phrasing on gcc image, and made example more clear --- gcc/README-content.md | 6 +++--- gcc/README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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.