aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-04-01 10:05:03 -0700
committerChristine Dodrill <me@christine.website>2019-04-01 10:05:28 -0700
commitf06f021f402270951f849dde7bee3f3340b8a1d5 (patch)
treebaee337aab524f162b349d254d21c2d8f2716d44 /Dockerfile
parentba91a17859267201b1d1f0e71da465b1464d940f (diff)
downloadx-f06f021f402270951f849dde7bee3f3340b8a1d5.tar.xz
x-f06f021f402270951f849dde7bee3f3340b8a1d5.zip
reorg
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 4 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index 7dca26a..4970892 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,17 +1,14 @@
-FROM xena/go:1.11.5 AS build
+FROM xena/go:1.12.1 AS build
WORKDIR /x
COPY . .
ENV GOPROXY=https://cache.greedo.xeserv.us
ENV CGO_ENABLED=0
-RUN go run tools_install.go \
- && GOBIN=/x/bin go install -v ./...
-RUN apk --no-cache add mdocml \
- && cd ./docs/man \
- && ./prepare.sh
+RUN go mod download
+RUN go test ./...
+RUN GOBIN=/x/bin go install -v ./...
RUN apk --no-cache add upx \
&& upx /x/bin/*
FROM xena/alpine
COPY --from=build /x/bin/ /usr/local/bin/
-COPY --from=build /x/docs/man /usr/share/man/man1
RUN apk --no-cache add man