FROM docker.elastic.co/beats/filebeat:8.2.0 # Switch to root user USER root #install jq to the container RUN apt-get update && apt-get install -y jq COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]