2019-04-16 12:41:18 +00:00
|
|
|
ARG ARCH="amd64"
|
|
|
|
ARG OS="linux"
|
|
|
|
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
2018-08-27 16:59:41 +00:00
|
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
2015-11-12 14:03:09 +00:00
|
|
|
|
2019-04-16 12:41:18 +00:00
|
|
|
ARG ARCH="amd64"
|
|
|
|
ARG OS="linux"
|
|
|
|
COPY .build/${OS}-${ARCH}/amtool /bin/amtool
|
|
|
|
COPY .build/${OS}-${ARCH}/alertmanager /bin/alertmanager
|
|
|
|
COPY examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
|
2015-11-12 14:03:09 +00:00
|
|
|
|
2018-10-17 10:01:48 +00:00
|
|
|
RUN mkdir -p /alertmanager && \
|
2020-12-16 20:31:12 +00:00
|
|
|
chown -R nobody:nobody etc/alertmanager /alertmanager
|
2018-10-17 10:01:48 +00:00
|
|
|
|
|
|
|
USER nobody
|
2015-11-12 14:03:09 +00:00
|
|
|
EXPOSE 9093
|
|
|
|
VOLUME [ "/alertmanager" ]
|
2018-07-04 08:53:51 +00:00
|
|
|
WORKDIR /alertmanager
|
2015-11-12 14:03:09 +00:00
|
|
|
ENTRYPOINT [ "/bin/alertmanager" ]
|
2018-07-04 08:53:51 +00:00
|
|
|
CMD [ "--config.file=/etc/alertmanager/alertmanager.yml", \
|
|
|
|
"--storage.path=/alertmanager" ]
|