Skip to content

Instantly share code, notes, and snippets.

@sivsivsree
Created September 19, 2019 11:06
Show Gist options
  • Select an option

  • Save sivsivsree/5c77bc8b13052131d85a750fc93ef452 to your computer and use it in GitHub Desktop.

Select an option

Save sivsivsree/5c77bc8b13052131d85a750fc93ef452 to your computer and use it in GitHub Desktop.
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