Skip to content

Instantly share code, notes, and snippets.

@pmbauer
Created April 20, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmbauer/acbc89608f99da43ab3bee94885f7742 to your computer and use it in GitHub Desktop.
Save pmbauer/acbc89608f99da43ab3bee94885f7742 to your computer and use it in GitHub Desktop.
# 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