aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-10-22 16:19:44 -0400
committerChristine Dodrill <me@christine.website>2019-10-22 16:19:48 -0400
commit27002d7a0e994633496b2e56c1fcabbd8d3bbad0 (patch)
tree0e298fa6694d8e31d639a6531627d11ed4fcae7c /Dockerfile
parent3b0c546e6e4a907cd1e5c31a6697bd3fdd54b77d (diff)
downloadx-27002d7a0e994633496b2e56c1fcabbd8d3bbad0.tar.xz
x-27002d7a0e994633496b2e56c1fcabbd8d3bbad0.zip
Dockerfile: fix
Diffstat (limited to 'Dockerfile')
-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 \