mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-11-08 07:50:05 +00:00
Update Dockerfile
This commit is contained in:
parent
d633d8e163
commit
32a74e15b6
1 changed files with 7 additions and 5 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,14 +1,16 @@
|
|||
FROM alpine
|
||||
FROM golang:alpine
|
||||
|
||||
ENV GOPATH /go:/go/src/github.com/Luzifer/promcertcheck/Godeps/_workspace
|
||||
MAINTAINER Knut Ahlers <knut@ahlers.me>
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT ["/go/bin/promcertcheck"]
|
||||
CMD ["--probe=https://www.google.com/", "--probe=https://www.facebook.com/"]
|
||||
|
|
Loading…
Reference in a new issue