Skip to content

Instantly share code, notes, and snippets.

@nidhi-ag
Last active December 28, 2017 11:58
Show Gist options
  • Save nidhi-ag/e3a339a3643114e13dfc33f5839b1b44 to your computer and use it in GitHub Desktop.
Save nidhi-ag/e3a339a3643114e13dfc33f5839b1b44 to your computer and use it in GitHub Desktop.
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
@nidhi-ag
Copy link
Author

Follow these steps to run this

docker build -t app .
docker run app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment