Created
September 19, 2019 11:06
-
-
Save sivsivsree/5c77bc8b13052131d85a750fc93ef452 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.12 | |
| ENV GO111MODULE=on | |
| LABEL maintainer="Siv S <[email protected]>" | |
| RUN apt-get -qq update \ | |
| && apt-get install -y \ | |
| some-library \ | |
| external-lib | |
| ADD . $GOPATH/src/github.com/sivsivsree/<repo name> | |
| WORKDIR $GOPATH/src/github.com/sivsivsree/<repo name> | |
| RUN go get ./... | |
| RUN go test -v . | |
| ENV PORT=8080 | |
| CMD $GOPATH/bin/<binary name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment