forked from galexrt/container-node_exporter-textfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 702 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 702 Bytes
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
31
FROM alpine:latest
ARG BUILD_DATE="N/A"
ARG REVISION="N/A"
RUN apk --no-cache add \
ca-certificates \
git \
jq \
moreutils \
nvme-cli \
pciutils \
smartmontools \
wget \
python3 \
bash
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir -p /scripts
RUN git clone --depth 1 --branch master --single-branch \
https://github.com/prometheus-community/node-exporter-textfile-collector-scripts.git \
/scripts
RUN chmod 755 /scripts/*
#RUN update-pciids -q
COPY entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
VOLUME ["/var/lib/node_exporter"]
ENTRYPOINT ["/entrypoint.sh"]