diff --git a/influxdb/2.7/Dockerfile b/influxdb/2.7/Dockerfile index 67308110b..6ac4cb130 100644 --- a/influxdb/2.7/Dockerfile +++ b/influxdb/2.7/Dockerfile @@ -85,10 +85,8 @@ RUN case "$(dpkg --print-architecture)" in \ -fLO "https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz.asc" && \ gpg --batch --verify "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz.asc" \ "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" && \ - tar xzf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" && \ - cp influx /usr/local/bin/influx && \ - rm -rf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}" \ - "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" \ + tar xzf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" -C /usr/local/bin ./influx && \ + rm -rf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" \ "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz.asc" && \ influx version diff --git a/influxdb/2.7/alpine/Dockerfile b/influxdb/2.7/alpine/Dockerfile index 39b6a4da5..b5b111b0f 100644 --- a/influxdb/2.7/alpine/Dockerfile +++ b/influxdb/2.7/alpine/Dockerfile @@ -67,10 +67,8 @@ RUN case "$(apk --print-arch)" in \ -fLO "https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz.asc" && \ gpg --batch --verify "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz.asc" \ "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" && \ - tar xzf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" && \ - cp influx /usr/local/bin/influx && \ - rm -rf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}" \ - "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" \ + tar xzf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" -C /usr/local/bin ./influx && \ + rm -rf "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz" \ "influxdb2-client-${INFLUX_CLI_VERSION}-linux-${arch}.tar.gz.asc" && \ influx version