github.com/RichardKnop/go-oauth2-server@v1.0.5-0.20201019163316-d02a401490d0/Dockerfile.test (about) 1 # Start from a Debian image with the latest version of Go installed 2 # and a workspace (GOPATH) configured at /go. 3 FROM golang 4 5 # Contact maintainer with any issues you encounter 6 MAINTAINER Richard Knop <risoknop@gmail.com> 7 8 # Set environment variables 9 ENV PATH /go/bin:$PATH 10 11 # Cd into the api code directory 12 WORKDIR /go/src/github.com/RichardKnop/go-oauth2-server 13 14 # Copy the local package files to the container's workspace. 15 ADD . /go/src/github.com/RichardKnop/go-oauth2-server 16 17 # Set GO111MODULE=on variable to activate module support 18 ENV GO111MODULE on 19 20 # Run integration tests as default command 21 CMD make test-with-coverage