Dockerfile 627 B

12345678910111213141516171819202122232425
  1. # https://github.com/elastic/logstash-docker
  2. FROM docker.elastic.co/logstash/logstash:5.3.0
  3. USER root
  4. RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
  5. RUN \
  6. apt-get update && \
  7. apt-get install -y language-pack-zh-hans && \
  8. rm -rf /var/lib/apt/lists/*
  9. RUN locale
  10. ENV LANG=zh_CN.UTF-8\
  11. LANGUAGE=zh_CN:zh:en_US:en\
  12. LC_ALL=zh_CN.UTF-8\
  13. TZ=Asia/Shanghai\
  14. TERM=xterm
  15. RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
  16. echo $TZ > /etc/timezone && \
  17. dpkg-reconfigure --frontend noninteractive tzdata
  18. USER logstash
  19. RUN logstash-plugin install logstash-input-gelf