+# install required dependencies
+RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
+ && apt-get install -qq -y build-essential openssl libssl-dev wget autoconf unzip python libtool
+# install subversion from tarball
+ && wget -q http://mirror.23media.de/apache/subversion/subversion-${SVN_VERSION}.tar.gz \
+ && tar xfz subversion-${SVN_VERSION}.tar.gz \
+ && rm -f subversion-${SVN_VERSION}.tar.gz \
+ && cd subversion-${SVN_VERSION} \
+ && cd apr/; ./buildconf; cd .. \
+ && cd apr-util/; ./buildconf; cd .. \
+ && cd apr-util/xml/expat/; ./buildconf.sh; cd ../../.. \
+RUN apt-get autoremove \
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+RUN mkdir /usr/src/app \
+ && useradd -d /usr/src/app -u ${SVN_UID} -s /bin/bash -U svn