From c0e2308557ea5bb35c3cf14430acf9fe304039d1 Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Fri, 15 Apr 2016 09:56:43 +1000 Subject: [PATCH] Bump squid version to 3.0.8 --- docker-squid/Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docker-squid/Dockerfile b/docker-squid/Dockerfile index d91f830..ae0f3c0 100644 --- a/docker-squid/Dockerfile +++ b/docker-squid/Dockerfile @@ -4,12 +4,16 @@ RUN sed s:deb:deb-src: /etc/apt/sources.list >> /etc/apt/sources.list RUN apt-get update && apt-get build-dep -y squid3 && apt-get install -y wget tar xz-utils libssl-dev +ARG SQUID_VERSION=4.0.8 + +# TODO: verify the squid download with the signing key RUN mkdir /src \ && cd /src \ - && wget http://www.squid-cache.org/Versions/v4/squid-4.0.7.tar.xz \ - && tar -xvvf squid-4.0.7.tar.xz + && wget http://www.squid-cache.org/Versions/v4/squid-$SQUID_VERSION.tar.xz \ + && mkdir squid \ + && tar -C squid --strip-components=1 -xvf squid-$SQUID_VERSION.tar.xz -RUN cd /src/squid-4.0.7 && \ +RUN cd /src/squid && \ ./configure \ --prefix=/usr \ --datadir=/usr/share/squid4 \ @@ -48,7 +52,7 @@ RUN cd /src/squid-4.0.7 && \ ARG CONCURRENCY=1 -RUN cd /src/squid-4.0.7 && \ +RUN cd /src/squid && \ make -j$CONCURRENCY && \ make install