FROM docker.elastic.co/beats/filebeat:7.2.0

COPY filebeat.yml /usr/share/filebeat/filebeat.yml
USER root
RUN chown root:filebeat /usr/share/filebeat/filebeat.yml

USER filebeat
RUN filebeat modules enable apache
