diff --git a/Dockerfile b/Dockerfile index 7db8222..ede992f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,9 @@ ARG REDIS_VERSION="stable" RUN apk add --no-cache su-exec tzdata make curl build-base linux-headers bash openssl-dev -RUN curl -fL -Lo /tmp/redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_VERSION}.tar.gz && \ +WORKDIR /tmp + +RUN curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_VERSION}.tar.gz && \ tar xvzf redis-${REDIS_VERSION}.tar.gz WORKDIR /tmp/redis-${REDIS_VERSION} diff --git a/Dockerfile.exporter b/Dockerfile.exporter index 2a71dfe..55c412d 100644 --- a/Dockerfile.exporter +++ b/Dockerfile.exporter @@ -6,6 +6,8 @@ ARG EXPORTER_URL="https://github.com/oliver006/redis_exporter/releases/download" ARG REDIS_EXPORTER_VERSION="1.48.0" +WORKDIR /tmp + RUN apk add --no-cache curl ca-certificates && \ curl -fL -Lo redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-$TARGETARCH.tar.gz \ ${EXPORTER_URL}/v${REDIS_EXPORTER_VERSION}/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-$TARGETARCH.tar.gz && \