Initial commit
commit
ba2400c041
|
@ -0,0 +1,31 @@
|
||||||
|
#
|
||||||
|
# Build stage
|
||||||
|
#
|
||||||
|
FROM golang:1.9-alpine3.6 as builder
|
||||||
|
|
||||||
|
# deps
|
||||||
|
RUN apk --no-cache add git build-base
|
||||||
|
|
||||||
|
# get and install
|
||||||
|
RUN go get -v github.com/keybase/client/go/keybase
|
||||||
|
RUN go install -v --ldflags '-extldflags "-static"' -tags production github.com/keybase/client/go/keybase
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Final image
|
||||||
|
#
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
# labels
|
||||||
|
LABEL org.label-schema.vcs-url="https://github.com/productionwentdown/keybase"
|
||||||
|
LABEL org.label-schema.version=${version}
|
||||||
|
LABEL org.label-schema.schema-version="1.0"
|
||||||
|
|
||||||
|
# copy ca-certs
|
||||||
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
# copy keybase binary
|
||||||
|
COPY --from=builder /go/bin/keybase /keybase
|
||||||
|
|
||||||
|
ENTRYPOINT ["/keybase", "--standalone"]
|
||||||
|
CMD ["version"]
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
# [keybase](https://hub.docker.com/r/productionwentdown/keybase/)
|
||||||
|
|
||||||
|
Standalone image to quickly ID profiles without installing Keybase
|
||||||
|
|
||||||
|
[![](https://images.microbadger.com/badges/image/productionwentdown/keybase.svg)](https://microbadger.com/images/productionwentdown/keybase "Get your own image badge on microbadger.com")
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it --rm productionwentdown/keybase id serverwentdown
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue