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