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