From 523300f7bcdee18cc74ed52706615c9ea98827ad Mon Sep 17 00:00:00 2001 From: AntiTree Date: Sat, 9 Jul 2016 20:55:18 -0400 Subject: [PATCH] Hey, look who just learned about docker container layers. This guy. Reducing build size substantially --- Dockerfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index d27fc40..985ea70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,20 +39,12 @@ RUN apt-get update && \ git" && \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install $build_deps \ init-system-helpers \ - pwgen - -# clone the latest from the tor repos -# Use the TOR_VER env var for the branch -RUN mkdir /src && \ + pwgen && \ + mkdir /src && \ cd /src && \ git clone https://git.torproject.org/tor.git && \ cd tor && \ - git checkout ${TOR_VER} - -# run autogen and build tor -# cleanup unnecessary files -# [OPTIONAL] clean up source -RUN cd /src/tor && \ + git checkout ${TOR_VER} && \ ./autogen.sh && \ ./configure --disable-asciidoc && \ make && \