diff --git a/golang/README.md b/golang/README.md index 6ec0068f..b46170d6 100644 --- a/golang/README.md +++ b/golang/README.md @@ -35,14 +35,12 @@ the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project: FROM golang:1.3.1-onbuild + CMD ["app"] This image includes multiple `ONBUILD` triggers which should cover most applications. The build will `COPY . /usr/src/app`, `RUN go get -d -v`, and `RUN go install -v`. -This image also includes the `CMD ["app"]` instruction which is the default command -when running the image. - You can then build and run the Docker image: docker build -t my-golang-app . diff --git a/golang/content.md b/golang/content.md index 7e2383ae..2932507e 100644 --- a/golang/content.md +++ b/golang/content.md @@ -19,14 +19,12 @@ the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project: FROM golang:1.3.1-onbuild + CMD ["app"] This image includes multiple `ONBUILD` triggers which should cover most applications. The build will `COPY . /usr/src/app`, `RUN go get -d -v`, and `RUN go install -v`. -This image also includes the `CMD ["app"]` instruction which is the default command -when running the image. - You can then build and run the Docker image: docker build -t my-golang-app .