prometheus-pve-sd/docker/Dockerfile.arm

25 lines
1003 B
Docker
Raw Normal View History

FROM arm32v7/python:3.10-alpine@sha256:22fb80b596d469e6c4d2fad76b4e2853032d9137dc2cb35de27ca8415122d1f9
2021-06-09 20:44:10 +02:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="prometheus-pve-sd"
LABEL org.opencontainers.image.url="https://github.com/thegeeklab/prometheus-pve-sd/"
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/prometheus-pve-sd/"
LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/prometheus-pve-sd/"
ENV PY_COLORS=1
ENV TZ=UTC
2021-06-09 20:44:10 +02:00
ADD dist/prometheus_pve_sd-*.whl /
2021-06-09 20:44:10 +02:00
RUN apk --update add --virtual .build-deps build-base libffi-dev openssl-dev && \
2021-06-09 20:44:10 +02:00
pip install --upgrade --no-cache-dir pip && \
pip install --no-cache-dir $(find / -name "prometheus_pve_sd-*.whl") && \
rm -f prometheus_pve_sd-*.whl && \
2021-06-09 20:44:10 +02:00
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/
USER root
CMD []
ENTRYPOINT ["/usr/local/bin/prometheus-pve-sd"]