forked from hpilo-exporter/hpilo-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
14 lines (11 loc) · 849 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.11.4-alpine3.18
ADD . /usr/src/hpilo_exporter
# Install psutil - needs linux-headers and build-base with gcc, remove it afterwards by name '.build-steps'. Install exporter.
RUN apk update && apk add --no-cache --virtual .build-steps linux-headers build-base && pip install psutil && pip install -e /usr/src/hpilo_exporter && apk del .build-steps
ENTRYPOINT ["hpilo-exporter"]
EXPOSE 9416
# These warnings can be ignored:
# WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager.
# It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
# WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
# You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.