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

29 lines
674 B
Text
Raw Normal View History

FROM golang:alpine as builder
2015-09-04 14:27:44 +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 \
&& apk add --update git \
&& go install \
-ldflags "-X main.version=$(git describe --tags --always || echo dev)" \
-mod=readonly
2015-09-04 14:27:44 +00:00
FROM alpine:latest
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
2016-09-29 09:42:47 +00:00
RUN set -ex \
&& apk --no-cache add \
ca-certificates
COPY --from=builder /go/bin/promcertcheck /usr/local/bin/promcertcheck
EXPOSE 3000
VOLUME ["/data/certs"]
ENTRYPOINT ["/usr/local/bin/promcertcheck"]
2015-09-04 14:27:44 +00:00
CMD ["--probe=https://www.google.com/", "--probe=https://www.facebook.com/"]
# vim: set ft=Dockerfile: