refactor: Add label-schema.org to Dockerfile
This commit is contained in:
parent
c9bc617e36
commit
3dd1a09105
1 changed files with 16 additions and 10 deletions
26
Dockerfile
26
Dockerfile
|
@ -1,15 +1,21 @@
|
|||
FROM golang:1.11 as build
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN go get -d -v ./...
|
||||
RUN go install -v ./...
|
||||
|
||||
FROM alpine:3.5
|
||||
LABEL maintainer "hipages DevOps Team <syd-team-devops@hipagesgroup.com.au>"
|
||||
|
||||
COPY --from=build /go/bin/php-fpm_exporter /
|
||||
ARG BUILD_DATE
|
||||
ARG VCS_REF
|
||||
ARG VERSION
|
||||
|
||||
COPY php-fpm_exporter /
|
||||
|
||||
EXPOSE 9253
|
||||
ENTRYPOINT [ "/php-fpm_exporter", "server" ]
|
||||
|
||||
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||
org.label-schema.name="php-fpm_exporter" \
|
||||
org.label-schema.description="A prometheus exporter for PHP-FPM." \
|
||||
org.label-schema.url="https://hipages.com.au/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-url="https://github.com/hipages/php-fpm_exporter" \
|
||||
org.label-schema.vendor="hipages" \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.docker.cmd="docker run -it --rm -e PHP_FPM_SCRAPE_URI=\"tcp://127.0.0.1:9000/status\" hipages/php-fpm_exporter"
|
||||
|
|
Loading…
Reference in a new issue