1
0
Fork 0

Initial commit

master
Ambrose Chua 2017-11-30 00:53:49 +08:00
commit ba2400c041
Signed by: ambrose
GPG Key ID: B34FBE029276BA5D
2 changed files with 44 additions and 0 deletions

31
Dockerfile Normal file
View File

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

13
README.md Normal file
View File

@ -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
```