1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-09 16:30:04 +00:00

Update Dockerfile

This commit is contained in:
Knut Ahlers 2016-09-29 11:42:47 +02:00
parent d633d8e163
commit 32a74e15b6
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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/"]