2021-04-21 23:38:47 +00:00
|
|
|
FROM alpine:3.13
|
2018-02-19 02:07:35 +00:00
|
|
|
|
2018-12-30 23:12:31 +00:00
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
ARG VERSION
|
|
|
|
|
|
|
|
COPY php-fpm_exporter /
|
2018-02-19 02:07:35 +00:00
|
|
|
|
|
|
|
EXPOSE 9253
|
2018-12-10 10:32:28 +00:00
|
|
|
ENTRYPOINT [ "/php-fpm_exporter", "server" ]
|
2018-12-30 23:12:31 +00:00
|
|
|
|
|
|
|
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"
|