From d932e246f1e5855144be834b7c0197bc9df47e65 Mon Sep 17 00:00:00 2001 From: iamabhishek-dubey Date: Sat, 21 Mar 2020 23:19:41 +0530 Subject: [PATCH] Fixed code --- Dockerfile.exporter | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile.exporter b/Dockerfile.exporter index bde7b78..fae906f 100644 --- a/Dockerfile.exporter +++ b/Dockerfile.exporter @@ -6,11 +6,11 @@ ARG REDIS_EXPORTER_VERSION="1.5.2" RUN apk add --no-cache curl ca-certificates && \ curl -fL -Lo /tmp/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz \ - ${EXPORTER_URL}/${REDIS_EXPORTER_VERSION}/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz && \ + ${EXPORTER_URL}/v${REDIS_EXPORTER_VERSION}/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz && \ cd /tmp && tar -xvzf redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz && \ mv redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64 redis_exporter -FROM scratch:latest +FROM scratch MAINTAINER Opstree Solutions @@ -21,8 +21,6 @@ LABEL VERSION=1.0 \ COPY --from=builder /etc/ssl/certs /etc/ssl/certs COPY --from=builder /tmp/redis_exporter/redis_exporter /usr/local/bin/redis_exporter -USER non-root - EXPOSE 9121 ENTRYPOINT ["/usr/local/bin/redis_exporter"] -- 2.26.0