mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-29 09:32:16 +00:00
01b9194397
New debian image has a nobody group. Signed-off-by: beorn7 <beorn@grafana.com>
22 lines
713 B
Docker
22 lines
713 B
Docker
ARG ARCH="amd64"
|
|
ARG OS="linux"
|
|
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
|
|
|
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
|
|
|
|
RUN mkdir -p /alertmanager && \
|
|
chown -R nobody:nobody etc/alertmanager /alertmanager
|
|
|
|
USER nobody
|
|
EXPOSE 9093
|
|
VOLUME [ "/alertmanager" ]
|
|
WORKDIR /alertmanager
|
|
ENTRYPOINT [ "/bin/alertmanager" ]
|
|
CMD [ "--config.file=/etc/alertmanager/alertmanager.yml", \
|
|
"--storage.path=/alertmanager" ]
|