From 107fe229d4129b85cb2ab384f0949287a9dc6f3f Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 14 Jul 2018 17:02:19 -0400 Subject: [PATCH] add viewdocs Signed-off-by: Jess Frazelle --- viewdocs/Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 viewdocs/Dockerfile diff --git a/viewdocs/Dockerfile b/viewdocs/Dockerfile new file mode 100644 index 0000000..26e085c --- /dev/null +++ b/viewdocs/Dockerfile @@ -0,0 +1,23 @@ +FROM golang:alpine as builder +MAINTAINER Jessica Frazelle + +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go + +RUN apk add --no-cache \ + ca-certificates \ + git + +RUN go get github.com/progrium/viewdocs + +WORKDIR /go/src/github.com/progrium/viewdocs + +RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/viewdocs *.go + +FROM scratch + +COPY --from=builder /usr/bin/viewdocs /usr/bin/viewdocs +COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs + +ENTRYPOINT [ "viewdocs" ] +CMD [ "--help" ]