mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-11-09 16:30:04 +00:00
Move docker image to alpine
This commit is contained in:
parent
828609a3bf
commit
093c7348db
2 changed files with 11 additions and 8 deletions
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/"]
|
||||
|
|
5
Makefile
5
Makefile
|
@ -12,8 +12,5 @@ test:
|
|||
--probe="https://www.itpad.de/" \
|
||||
--probe="https://mondash.org/"
|
||||
|
||||
container: build
|
||||
container:
|
||||
docker build -t luzifer/promcertcheck .
|
||||
|
||||
build:
|
||||
docker run -v $(CURDIR):/src -e LDFLAGS='-X main.version $(VERSION)' centurylink/golang-builder:latest
|
||||
|
|
Loading…
Reference in a new issue