-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
43 lines (36 loc) · 1.15 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
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM docker.io/library/python:3.13-slim
ENV \
DEBCONF_NONINTERACTIVE_SEEN="true" \
DEBIAN_FRONTEND="noninteractive" \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE="DontWarn"
ENV \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_ROOT_USER_ACTION=ignore \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_BREAK_SYSTEM_PACKAGES=1 \
IS_DOCKER=True
WORKDIR /app
COPY . .
RUN \
apt-get update \
&& \
apt-get install --no-install-recommends -y \
catatonit \
intel-gpu-tools \
&& pip install --requirement requirements.txt \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/cache/apt/* \
/var/tmp/*
ENTRYPOINT ["/usr/bin/catatonit", "--", "/usr/local/bin/python"]
CMD ["/app/intel-gpu-exporter.py"]
LABEL \
org.opencontainers.image.title="intel-gpu-exporter" \
org.opencontainers.image.authors="Devin Buhl <[email protected]>" \
org.opencontainers.image.source="https://github.com/onedr0p/intel-gpu-exporter"