argos/deployment/elk/filebeat/Dockerfile

14 lines
430 B
Docker

ARG ELK_VERSION
FROM docker.elastic.co/beats/filebeat:${ELK_VERSION}
USER root
RUN groupmod -g 1008 filebeat
RUN usermod -u 1008 -g 1008 filebeat
RUN chown -R filebeat /usr/share/filebeat
RUN sed -i -e 's/--userspec=1000/--userspec=1008/g' \
-e 's/UID 1000/UID 1008/' \
-e 's/chown -R 1000/chown -R 1008/' /usr/local/bin/docker-entrypoint
RUN chown filebeat /usr/local/bin/docker-entrypoint
USER 1008:1008