generated from datahub-local/dagster-celery-k8s-oci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (32 loc) · 1010 Bytes
/
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
31
32
33
34
35
36
FROM public.ecr.aws/debian/debian:stable-slim
RUN apt-get -q update && \
apt-get -q upgrade -y && \
apt-get install -y --no-install-recommends \
ca-certificates \
git \
jq \
moreutils \
moreutils \
nvme-cli \
pciutils \
smartmontools \
wget \
python3 \
python3-prometheus-client \
gpg \
gpg-agent && \
mkdir -p /scripts && \
git clone --depth 1 --branch master --single-branch \
https://github.com/prometheus-community/node-exporter-textfile-collector-scripts.git \
/scripts && \
chmod 755 /scripts/* && \
/usr/sbin/update-smart-drivedb && \
apt-get remove -y gpg git gpg-agent && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
update-pciids -q
COPY entrypoint.sh /entrypoint.sh
COPY scripts/* /scripts/
RUN chmod 755 /entrypoint.sh /scripts/*.sh /scripts/*.py
ENTRYPOINT ["/entrypoint.sh"]