aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile3
-rwxr-xr-xdocs/man/prepare.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 409a7c6..c48ae3a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,6 +4,9 @@ COPY . .
ENV GOPROXY=https://cache.greedo.xeserv.us
ENV CGO_ENABLED=0
RUN GOBIN=/x/bin go install -v ./...
+RUN cd ./docs/man && ./prepare.sh
FROM xena/alpine
COPY --from=build /x/bin/ /usr/local/bin/
+COPY --from=build /x/doc/man /usr/share/man/man1
+RUN apk --no-cache add man
diff --git a/docs/man/prepare.sh b/docs/man/prepare.sh
new file mode 100755
index 0000000..2180c32
--- /dev/null
+++ b/docs/man/prepare.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+gzip *.1