7004aa2d93
* Revert "chore: add build target to Makefile & builder to Dockerfile (#215)"
This reverts commit de88bc221a
.
* fix: generate image from current commit
goreleaser was using the latest commit to master instead of the PR.
* chore: getting goreleaser to play nice
21 lines
759 B
Docker
21 lines
759 B
Docker
FROM alpine:3.15.0
|
|
|
|
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"
|