22 lines
506 B
Docker
22 lines
506 B
Docker
ARG ELK_VERSION
|
|
ARG DEPLOY_USER
|
|
ARG DEPLOY_GROUP
|
|
|
|
# https://github.com/elastic/kibana-docker
|
|
FROM docker.elastic.co/kibana/kibana:${ELK_VERSION}
|
|
|
|
ARG DEPLOY_USER
|
|
ARG DEPLOY_GROUP
|
|
ENV DEPLOY_USER $DEPLOY_USER
|
|
ENV DEPLOY_GROUP $DEPLOY_GROUP
|
|
|
|
USER root
|
|
RUN groupmod -g ${DEPLOY_GROUP} kibana
|
|
RUN usermod -u ${DEPLOY_USER} -g ${DEPLOY_GROUP} kibana
|
|
RUN chown -R kibana /usr/share/kibana
|
|
|
|
USER ${DEPLOY_USER}:${DEPLOY_GROUP}
|
|
|
|
# Add your kibana plugins setup here
|
|
# Example: RUN kibana-plugin install <name|url>
|