2018-09-28 21:51:13 +00:00
|
|
|
FROM golang:alpine as builder
|
2015-09-04 14:27:44 +00:00
|
|
|
|
2018-09-28 21:51:13 +00:00
|
|
|
COPY . /go/src/github.com/Luzifer/promcertcheck
|
2016-01-25 23:41:21 +00:00
|
|
|
WORKDIR /go/src/github.com/Luzifer/promcertcheck
|
|
|
|
|
2016-09-29 09:42:47 +00:00
|
|
|
RUN set -ex \
|
2018-09-28 21:51:13 +00:00
|
|
|
&& apk add --update git \
|
|
|
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
2015-09-04 14:27:44 +00:00
|
|
|
|
2018-09-28 21:51:13 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
2016-09-29 09:42:47 +00:00
|
|
|
|
2018-09-28 21:51:13 +00:00
|
|
|
RUN set -ex \
|
|
|
|
&& apk --no-cache add ca-certificates
|
|
|
|
|
|
|
|
COPY --from=builder /go/bin/promcertcheck /usr/local/bin/promcertcheck
|
|
|
|
|
|
|
|
EXPOSE 3000
|
2017-11-05 16:31:06 +00:00
|
|
|
VOLUME ["/data/certs"]
|
|
|
|
|
2018-09-28 21:51:13 +00:00
|
|
|
ENTRYPOINT ["/usr/local/bin/promcertcheck"]
|
2015-09-04 14:27:44 +00:00
|
|
|
CMD ["--probe=https://www.google.com/", "--probe=https://www.facebook.com/"]
|
2018-09-28 21:51:13 +00:00
|
|
|
|
|
|
|
# vim: set ft=Dockerfile:
|