prometheus-pve-sd/docker/Dockerfile.arm

24 lines
929 B
Docker
Raw Normal View History

2021-09-19 20:14:30 +00:00
FROM arm32v7/python:3.9-alpine@sha256:dbda704ed7d0a4f681db18c604c22b5f541defa7827bf40c0c3babbe7a420d56
2021-06-09 18:44:10 +00: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
ADD dist/prometheus_pve_sd-*.whl /
2021-06-09 18:44:10 +00:00
RUN apk update && \
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 18:44:10 +00:00
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/
USER root
CMD []
ENTRYPOINT ["/usr/local/bin/prometheus-pve-sd"]