forked from onedr0p/intel-gpu-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (31 loc) · 994 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
37
38
FROM docker.io/library/ubuntu:22.04
ENV \
GPU_DEVICE="drm:/dev/dri/card0" \
DEBCONF_NONINTERACTIVE_SEEN="true" \
DEBIAN_FRONTEND="noninteractive" \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE="DontWarn"
WORKDIR /app
COPY . .
RUN \
apt-get -qq update \
&& \
apt-get install --no-install-recommends -y \
python3 \
python3-pip \
intel-gpu-tools \
tini \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get autoremove -y \
&& apt-get clean \
&& pip install --no-cache-dir -r requirements.txt \
&& \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/cache/apt/* \
/var/tmp/*
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/bin/python3", "/app/intel-gpu-exporter.py"]
EXPOSE 8080/tcp
LABEL \
org.opencontainers.image.base.name="ghcr.io/millercentral/intel-gpu-exporter" \
org.opencontainers.image.authors="James Miller <[email protected]>"