ARG ELK_VERSION # https://github.com/elastic/kibana-docker FROM docker.elastic.co/kibana/kibana:${ELK_VERSION} # USER root # RUN groupmod -g 1002 kibana # RUN usermod -g 1002 root # RUN usermod -u 1002 -g 1002 kibana # RUN chown -R kibana /usr/share/kibana # USER 1002:1002 # Add your kibana plugins setup here # Example: RUN kibana-plugin install