Skip to content

Commit

Permalink
add viewdocs
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jul 14, 2018
1 parent babf3fb commit 107fe22
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions viewdocs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM golang:alpine as builder
MAINTAINER Jessica Frazelle <[email protected]>

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" ]

0 comments on commit 107fe22

Please sign in to comment.