From 412d4e396a3fb396abadacaad1d5394f3d6c6df8 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 17 Jun 2016 15:03:52 -0700 Subject: [PATCH] Install GNU tar as a build-dep to decrease our diff slightly more (given that the build-time impact will be tiny, and the run-time impact won't exist) --- alpine/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 53e856e..1dd4c3a 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -14,11 +14,11 @@ RUN set -x \ linux-headers \ make \ perl \ + tar \ && wget -O memcached.tar.gz "http://memcached.org/files/memcached-$MEMCACHED_VERSION.tar.gz" \ && echo "$MEMCACHED_SHA1 memcached.tar.gz" | sha1sum -c - \ - && mkdir -p /usr/src \ - && tar -xzf memcached.tar.gz -C /usr/src \ - && mv "/usr/src/memcached-$MEMCACHED_VERSION" /usr/src/memcached \ + && mkdir -p /usr/src/memcached \ + && tar -xzf memcached.tar.gz -C /usr/src/memcached --strip-components=1 \ && rm memcached.tar.gz \ && cd /usr/src/memcached \ && ./configure \