From d97896f925c5dabc50799036ad2b3e49916c7cbb Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 11 Sep 2014 21:03:30 -0700 Subject: [PATCH] fix path to go app binary `go build` puts the binary in current source directory. only `go install` installs to GOBIN (`/go/bin/app`) --- 1.3/onbuild/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.3/onbuild/Dockerfile b/1.3/onbuild/Dockerfile index ac1b3650..01f5457a 100644 --- a/1.3/onbuild/Dockerfile +++ b/1.3/onbuild/Dockerfile @@ -4,7 +4,7 @@ RUN mkdir -p /go/src/app WORKDIR /go/src/app # this will ideally be built by the ONBUILD below ;) -CMD ["/go/bin/app"] +CMD ["/go/src/app/app"] ONBUILD COPY . /go/src/app ONBUILD RUN go get -d -v ./...