diff --git a/prometheus/Dockerfile b/prometheus/Dockerfile index 0b44073..93eb846 100755 --- a/prometheus/Dockerfile +++ b/prometheus/Dockerfile @@ -17,11 +17,19 @@ RUN \ && if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \ \ && apk update \ - && apk --no-cache add python3 py3-idna py3-certifi py3-chardet py3-yaml py3-urllib3 py3-requests \ - && apk --no-cache add --virtual builddeps py-pip \ + && apk --no-cache add \ + python3 \ + py3-idna \ + py3-certifi \ + py3-chardet \ + py3-yaml \ + py3-urllib3 \ + py3-requests \ + && apk --no-cache add --virtual .builddeps \ + py-pip \ \ && curl -J -L -o /tmp/prometheus.tar.gz \ - https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz \ + "https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz" \ && adduser -s /bin/false -D -H prometheus \ && cd /tmp \ && tar -xvf /tmp/prometheus.tar.gz \ @@ -33,7 +41,7 @@ RUN \ && rm -r prometheus-${PROMETHEUS_VERSION}.linux-${ARCH} \ && chown -R prometheus:prometheus /etc/prometheus \ && pip3 install -r /opt/prometheus-configgen/requirements.txt \ - && apk del builddeps + && apk --no-cache del .builddeps # Build arguments ARG BUILD_DATE