diff options
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 \ |
