Created
December 9, 2016 20:18
-
-
Save webdev/c7279a9fd9fb63337616029277b6ddab to your computer and use it in GitHub Desktop.
Go docker
This file contains 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/webdev/golang-docker | |
# Build the golang-docker command inside the container. | |
RUN go install github.com/webdev/golang-docker | |
# Run the golang-docker command by default 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