-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
LABEL maintainer="Christian González Di Antonio <[email protected]>" \
org.opencontainers.image.authors="Christian González Di Antonio <[email protected]>" \
org.opencontainers.image.url="https://github.com/slashdevops/aws_cloudwatch_exporter" \
org.opencontainers.image.documentation="https://github.com/slashdevops/aws_cloudwatch_exporter" \
org.opencontainers.image.source="https://github.com/slashdevops/aws_cloudwatch_exporter" \
org.opencontainers.image.licenses="Apache License Version 2.0" \
org.opencontainers.image.title="AWS CloudWatch exporter for prometheus.io" \
org.opencontainers.image.description="AWS CloudWatch exporter for prometheus.io"
ARG ARCH="amd64"
ARG OS="linux"
COPY .build/${OS}-${ARCH}/aws_cloudwatch_exporter /bin/aws_cloudwatch_exporter
ARG PORT="9690"
EXPOSE ${PORT}
RUN mkdir -p /home/nobody/.aws && chown -R nobody:nobody /home/nobody
ENV HOME="/home/nobody"
USER nobody
HEALTHCHECK CMD wget --spider -S "http://localhost:${PORT}/health" -T 60 2>&1 || exit 1
VOLUME ["/home/nobody"]
ENTRYPOINT [ "/bin/aws_cloudwatch_exporter" ]
# CMD [ "/bin/aws_cloudwatch_exporter" ]