aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
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 \