1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-08 16:00:08 +00:00
promcertcheck/Dockerfile

19 lines
508 B
Text
Raw Normal View History

2016-09-29 09:42:47 +00:00
FROM golang:alpine
2015-09-04 14:27:44 +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
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/"]