Created
February 4, 2017 12:33
-
-
Save icambridge/163763cd1017d8a5319c0c48ec697969 to your computer and use it in GitHub Desktop.
Go dep in 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
FROM golang:1.7 | |
# Set go bin which doesn't appear to be set already. | |
ENV GOBIN /go/bin | |
# build directories | |
RUN mkdir /app | |
RUN mkdir /go/src/app | |
ADD . /go/src/app | |
WORKDIR /go/src/app | |
# Go dep! | |
RUN go get -u github.com/golang/dep/... | |
RUN dep ensure | |
# Build my app | |
RUN go build -o /app/main . | |
CMD ["/app/main"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment