2016-01-25 23:41:21 +00:00
|
|
|
FROM alpine
|
2015-09-04 14:27:44 +00:00
|
|
|
|
2016-01-25 23:41:21 +00:00
|
|
|
ENV GOPATH /go:/go/src/github.com/Luzifer/promcertcheck/Godeps/_workspace
|
|
|
|
|
|
|
|
ADD . /go/src/github.com/Luzifer/promcertcheck
|
|
|
|
WORKDIR /go/src/github.com/Luzifer/promcertcheck
|
|
|
|
|
|
|
|
RUN apk --update add git go ca-certificates \
|
|
|
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short || echo dev)" \
|
|
|
|
&& apk --purge del git go
|
2015-09-04 14:27:44 +00:00
|
|
|
|
|
|
|
EXPOSE 3000
|
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/"]
|