diff --git a/images/zookeeper/Dockerfile.in b/images/zookeeper/Dockerfile.in index 81c7c4ca8f2..02fd113d4bb 100755 --- a/images/zookeeper/Dockerfile.in +++ b/images/zookeeper/Dockerfile.in @@ -29,10 +29,8 @@ ARG DISTRO_NAME=zookeeper-3.4.9 # Download Apache Zookeeper, verify its PGP signature, untar and clean up RUN set -x \ && cd / \ - && wget -q "http://www.apache.org/dist/zookeeper/$DISTRO_NAME/$DISTRO_NAME.tar.gz" \ - && tar -xzf "$DISTRO_NAME.tar.gz" \ - && mv "$DISTRO_NAME/conf/"* "$ZOO_CONF_DIR" \ - && rm -r "$DISTRO_NAME.tar.gz" + && curl -fsSL "http://www.apache.org/dist/zookeeper/$DISTRO_NAME/$DISTRO_NAME.tar.gz" | tar -xz \ + && mv "$DISTRO_NAME/conf/"* "$ZOO_CONF_DIR" WORKDIR $DISTRO_NAME VOLUME ["$ZOO_DATA_DIR", "$ZOO_DATA_LOG_DIR"]