aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-12-09 09:05:05 -0800
committerChristine Dodrill <me@christine.website>2018-12-09 09:05:05 -0800
commit30962ec81294167a3f2e9ea0c8fdaf499fa198fa (patch)
treeaef83339d5b874f1d3c7c24772e0e59d82902af5
parentee6ceb9e97dec40abd80348dd05db2e45e84eecb (diff)
downloadx-30962ec81294167a3f2e9ea0c8fdaf499fa198fa.tar.xz
x-30962ec81294167a3f2e9ea0c8fdaf499fa198fa.zip
Dockerfile: manpages
-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