aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-12-10 04:14:21 +0000
committerChristine Dodrill <me@christine.website>2018-12-10 04:14:21 +0000
commit02ba508eeb28480fa5a3d4de8184702a54ab7b12 (patch)
treeb24fa439ada9f04c6ca8fe00d0343b7257b5b97d /Dockerfile
parent7680f8cc6d7f3435e1aa67e5b00844880ff4bfd2 (diff)
downloadx-02ba508eeb28480fa5a3d4de8184702a54ab7b12.tar.xz
x-02ba508eeb28480fa5a3d4de8184702a54ab7b12.zip
fix ko
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 19f23a4..dd0e297 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,8 +3,13 @@ WORKDIR /x
COPY . .
ENV GOPROXY=https://cache.greedo.xeserv.us
ENV CGO_ENABLED=0
-RUN GOBIN=/x/bin go install -v ./...
-RUN apk --no-cache add mdocml && cd ./docs/man && ./prepare.sh
+RUN go run tools_install.go \
+ && GOBIN=/x/bin go install -v ./...
+RUN apk --no-cache add mdocml \
+ && cd ./docs/man \
+ && ./prepare.sh
+RUN apk --no-cache add upx \
+ && upx /x/bin/*
FROM xena/alpine
COPY --from=build /x/bin/ /usr/local/bin/