Created
April 20, 2016 16:09
-
-
Save pmbauer/acbc89608f99da43ab3bee94885f7742 to your computer and use it in GitHub Desktop.
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:1.5-alpine includes the go compiler | |
FROM golang:1.5-alpine | |
# Add build tools needed by go get | |
RUN apk add --update git | |
# Add source code | |
COPY . /go/src/github.com/udacity/my-awesome | |
WORKDIR /go/src/github.com/udacity/my-awesome | |
# Compile | |
RUN go get && go install -v | |
CMD ["my-awesome"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment