FROM golang:1.18 WORKDIR /eduvpn/go # pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change COPY ./go.mod go.sum ./ RUN go mod download && go mod verify COPY ./src ./src CMD ["go", "test", "github.com/jwijenbergh/eduvpn-common/src"]