Created
December 17, 2014 04:11
-
-
Save shijuvar/b4f3bd5c6905116a6281 to your computer and use it in GitHub Desktop.
Docker file for a Go app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # golang image where workspace (GOPATH) configured at /go. | |
| FROM golang:latest | |
| # Copy the local package files to the container’s workspace. | |
| ADD . /go/src/github.com/shijuvar/golang-docker | |
| # Build the golang-docker command inside the container. | |
| RUN go install github.com/shijuvar/golang-docker | |
| # Run the golang-docker command when the container starts. | |
| ENTRYPOINT /go/bin/golang-docker | |
| # http server listens on port 8080. | |
| EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment