From 656ba083cf664cc6365f2662ea822f8fea285402 Mon Sep 17 00:00:00 2001 From: ismailshahzad Date: Thu, 23 Jul 2020 22:39:00 +0500 Subject: [PATCH] [Dockerfile] Fixes failing build due to wget while downloading redis While downloading redis the build fails when wget is run inside Dockerfile. Following error is shown with wget command --- Connecting to download.redis.io (45.60.125.1:80) wget: bad header line: XRQOValA: WtM; path=/; Max-Age=900 --- --- rootfs/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/Dockerfile b/rootfs/Dockerfile index 352d0ae..e8085d7 100644 --- a/rootfs/Dockerfile +++ b/rootfs/Dockerfile @@ -89,7 +89,7 @@ ENV CKAN__HARVEST__MQ__HOSTNAME=localhost ENV CKAN__HARVEST__MQ__PORT=6379 RUN apk add --no-cache linux-headers && \ cd ${SRC_DIR} && \ - wget http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz && \ + curl -O http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz && \ tar xzf redis-${REDIS_VERSION}.tar.gz && \ rm -f redis-${REDIS_VERSION}.tar.gz && \ cd redis-${REDIS_VERSION} && \