Skip to content

Instantly share code, notes, and snippets.

@kevsersrca
Created November 26, 2019 07:17
Show Gist options
  • Select an option

  • Save kevsersrca/eefd3fed9ce3a4bf62a3179cc64d1f02 to your computer and use it in GitHub Desktop.

Select an option

Save kevsersrca/eefd3fed9ce3a4bf62a3179cc64d1f02 to your computer and use it in GitHub Desktop.
golang dockerfile template
FROM golang:1.12
WORKDIR $GOPATH/src/project
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
EXPOSE 8080
ENV GO111MODULE=on
CMD ["project"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment