From dd789b087f58b9921eb5dddaf75d190c9272920b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 9 Jan 2022 22:08:30 +0100 Subject: [PATCH] chore: add build deps to Dockerfile (#120) --- docker/Dockerfile.amd64 | 3 ++- docker/Dockerfile.arm | 3 ++- docker/Dockerfile.arm64 | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.amd64 b/docker/Dockerfile.amd64 index 4834bb2..73c1359 100644 --- a/docker/Dockerfile.amd64 +++ b/docker/Dockerfile.amd64 @@ -8,10 +8,11 @@ LABEL org.opencontainers.image.source="https://github.com/thegeeklab/prometheus- LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/prometheus-pve-sd/" ENV PY_COLORS=1 +ENV TZ=UTC ADD dist/prometheus_pve_sd-*.whl / -RUN apk update && \ +RUN apk --update add --virtual .build-deps build-base libffi-dev openssl-dev && \ pip install --upgrade --no-cache-dir pip && \ pip install --no-cache-dir $(find / -name "prometheus_pve_sd-*.whl") && \ rm -f prometheus_pve_sd-*.whl && \ diff --git a/docker/Dockerfile.arm b/docker/Dockerfile.arm index 393a6b8..d561aab 100644 --- a/docker/Dockerfile.arm +++ b/docker/Dockerfile.arm @@ -8,10 +8,11 @@ LABEL org.opencontainers.image.source="https://github.com/thegeeklab/prometheus- LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/prometheus-pve-sd/" ENV PY_COLORS=1 +ENV TZ=UTC ADD dist/prometheus_pve_sd-*.whl / -RUN apk update && \ +RUN apk --update add --virtual .build-deps build-base libffi-dev openssl-dev && \ pip install --upgrade --no-cache-dir pip && \ pip install --no-cache-dir $(find / -name "prometheus_pve_sd-*.whl") && \ rm -f prometheus_pve_sd-*.whl && \ diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index 9e1119d..c44f381 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -8,10 +8,11 @@ LABEL org.opencontainers.image.source="https://github.com/thegeeklab/prometheus- LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/prometheus-pve-sd/" ENV PY_COLORS=1 +ENV TZ=UTC ADD dist/prometheus_pve_sd-*.whl / -RUN apk update && \ +RUN apk --update add --virtual .build-deps build-base libffi-dev openssl-dev && \ pip install --upgrade --no-cache-dir pip && \ pip install --no-cache-dir $(find / -name "prometheus_pve_sd-*.whl") && \ rm -f prometheus_pve_sd-*.whl && \