FROM docker.elastic.co/beats/metricbeat-oss:7.12.1
COPY --chown=root:metricbeat metricbeat.yml /usr/share/metricbeat/metricbeat.yml
#RUN metricbeat test config
HEALTHCHECK CMD curl --fail http://localhost:5077/stats || exit 1
