Fixing image build order in Dockerfile that prevented it from building

This commit is contained in:
AntiTree 2016-07-09 20:34:04 -04:00
parent fd1ea6753a
commit c6ee88eca8

View File

@ -41,18 +41,19 @@ RUN apt-get update && \
init-system-helpers \ init-system-helpers \
pwgen pwgen
# Build tor
# clone the latest from the tor repos # clone the latest from the tor repos
# autogen, configure, make, and install tor # Use the TOR_VER env var for the branch
# cleanup after
RUN mkdir /src && \ RUN mkdir /src && \
cd /src && \ cd /src && \
git clone https://git.torproject.org/tor.git && \ git clone https://git.torproject.org/tor.git && \
cd tor && \ cd tor && \
git checkout ${TOR_VER} git checkout ${TOR_VER}
# run autogen and build tor
RUN ./autogen.sh && \ # cleanup unnecessary files
# [OPTIONAL] clean up source
RUN cd /src/tor && \
./autogen.sh && \
./configure --disable-asciidoc && \ ./configure --disable-asciidoc && \
make && \ make && \
make install && \ make install && \