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