Last active
December 28, 2017 11:58
-
-
Save nidhi-ag/e3a339a3643114e13dfc33f5839b1b44 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
FROM golang:1.7 | |
# Install glide | |
RUN curl https://glide.sh/get | sh | |
RUN mkdir -p /go/src/github.com/App | |
COPY . /go/src/github.com/App | |
WORKDIR /go/src/github.com/App | |
# Install go packages | |
RUN glide install | |
RUN go build -o app main.go | |
CMD ./app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow these steps to run this
docker build -t app .
docker run app