diff options
| author | Christine Dodrill <me@christine.website> | 2019-04-01 10:05:03 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2019-04-01 10:05:28 -0700 |
| commit | f06f021f402270951f849dde7bee3f3340b8a1d5 (patch) | |
| tree | baee337aab524f162b349d254d21c2d8f2716d44 /Dockerfile | |
| parent | ba91a17859267201b1d1f0e71da465b1464d940f (diff) | |
| download | x-f06f021f402270951f849dde7bee3f3340b8a1d5.tar.xz x-f06f021f402270951f849dde7bee3f3340b8a1d5.zip | |
reorg
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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 |
