Closed michaellopez closed 8 years ago
I'm not sure why ENTRYPOINT ["/go/src/app/app"]
is in the Dockerfile
?
@michaellopez The golang:1.3.1-onbuild
image has some ONBUILD
triggers which copy the content of this project folder into the container /go/src/app
folder, follow by a call to go install -v
. The app
binary is then installed in $GOPATH/bin
. (You can read more about this on the Golang official Docker Hub repo.)
Meanwhile, you can get this to work by replacing ENTRYPOINT ["/go/src/app/app"]
with ENTRYPOINT ["/go/bin/app"]
. I will open a PR to fix this.
@ihcsim Thanks for the info. I did a fork of this repo (https://github.com/weahead/dockron) where I updated the image and changed the Dockerfile to not use onbuild
given the recommendations in golangs docker hub repo
But I'll see if your PR fixes my issue then I'll be glad to drop my fork as it would no longer be needed.
@ihcsim When do you think this PR will get merged and pushed to Docker hub?
@michaellopez The PR is merged. I have also updated the Dockerfile to use golang-1.5.2-onbuild
as its base image, since 1.3 has been removed.
Let me know if this works.
@ihcsim Works perfect now. Dropped my fork, not needed now. Thanks for your effort!
I am following the README, am I missing something?
Looking at the Dockerfile and Makefile I'm not seeing how dockron.go is ever executed/run? Does
golang:1.3.1-onbuild
do something special?