Dockerfile_event 566 B

1234567891011121314151617181920
  1. FROM golang:1.19.3
  2. ENV GOPROXY https://goproxy.cn/
  3. RUN apt install apt-transport-https ca-certificates
  4. RUN apt-get update && apt-get install -yq tzdata vim iputils-ping net-tools telnet iotop
  5. ENV TZ="Asia/Shanghai"
  6. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone
  7. RUN dpkg-reconfigure -f noninteractive tzdata
  8. RUN mkdir -p /app
  9. COPY bin/observe-event /app/observe-event
  10. COPY ./config /app/config
  11. COPY ./version /app/version
  12. EXPOSE 8000
  13. RUN chmod +x /app/observe-event
  14. CMD ["/app/observe-event", "alert", "-c", "/app/settings.yml"]