Part of nanoservice image library.
Put Dockerfile
inside of your service:
FROM nanoservice/go
ADD . /go/src/github.com/username/app
WORKDIR /go/src/github.com/username/app
RUN go install
RUN go test
ENTRYPOINT ["app"]
Build it: docker built -t my-app .
.
Run it: docker run my-app
.
Enjoy!
- Fork it ( https://github.com/nanoservice/docker-go/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- waterlink Oleksii Fedorov, creator, maintainer