summaryrefslogtreecommitdiff
path: root/ci/docker/go-test.docker
blob: d576dd7e73d6d4c0e73716716ff134c530e541ab (plain)
1
2
3
4
5
6
7
8
9
10
11
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"]