mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-09-19 01:12:56 +00:00
Move docker image to alpine
This commit is contained in:
parent
828609a3bf
commit
093c7348db
14
Dockerfile
14
Dockerfile
@ -1,8 +1,14 @@
|
||||
FROM scratch
|
||||
FROM alpine
|
||||
|
||||
ADD https://rootcastore.hub.luzifer.io/v1/store/latest /etc/ssl/ca-bundle.pem
|
||||
ADD promcertcheck /promcertcheck
|
||||
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
|
||||
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["/promcertcheck"]
|
||||
ENTRYPOINT ["/go/bin/promcertcheck"]
|
||||
CMD ["--probe=https://www.google.com/", "--probe=https://www.facebook.com/"]
|
||||
|
Loading…
Reference in New Issue
Block a user