From 27002d7a0e994633496b2e56c1fcabbd8d3bbad0 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 22 Oct 2019 16:19:44 -0400 Subject: Dockerfile: fix --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 0a4c0d7..c8c310e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM xena/go:1.12.6 AS build WORKDIR /x -COPY . . ENV GOPROXY=https://cache.greedo.xeserv.us ENV CGO_ENABLED=0 +COPY go.mod . +COPY go.sum . RUN go mod download +COPY . . RUN go test ./... RUN GOBIN=/x/bin go install -v ./... RUN apk --no-cache add upx \ -- cgit v1.2.3