Skip to content

Instantly share code, notes, and snippets.

@dlsniper
Last active June 27, 2018 07:06
Show Gist options
  • Save dlsniper/a902e411118829f4f598da2d8a2cff11 to your computer and use it in GitHub Desktop.
Save dlsniper/a902e411118829f4f598da2d8a2cff11 to your computer and use it in GitHub Desktop.
Dockerfile to test your Go code with the latest version of Go 1.10
FROM golang:1.10beta2
ADD . /go/src/github.com/<user>/<repo>
WORKDIR /go/src/github.com/<user>/<repo>
RUN go test -coverpkg=all -coverprofile cover.out ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment