mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-11-09 16:30:04 +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
|
ADD . /go/src/github.com/Luzifer/promcertcheck
|
||||||
WORKDIR /go/src/github.com/Luzifer/promcertcheck
|
WORKDIR /go/src/github.com/Luzifer/promcertcheck
|
||||||
|
|
||||||
RUN apk --update add git go ca-certificates \
|
RUN set -ex \
|
||||||
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short || echo dev)" \
|
&& apk add --update git ca-certificates \
|
||||||
&& apk --purge del git go
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \
|
||||||
|
&& apk del --purge git
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENTRYPOINT ["/go/bin/promcertcheck"]
|
ENTRYPOINT ["/go/bin/promcertcheck"]
|
||||||
CMD ["--probe=https://www.google.com/", "--probe=https://www.facebook.com/"]
|
CMD ["--probe=https://www.google.com/", "--probe=https://www.facebook.com/"]
|
||||||
|
|
Loading…
Reference in a new issue