clean up and add Volume
diff --git a/Dockerfile b/Dockerfile
index 458afab..1e7b0ce 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,11 +3,12 @@
RUN echo "1.565.2" > .lts-version-number
RUN apt-get update && apt-get install -y wget git curl zip && apt-get clean
-RUN apt-get update && apt-get install -y --no-install-recommends openjdk-7-jdk && apt-get clean bash
+RUN apt-get update && apt-get install -y --no-install-recommends openjdk-7-jdk
RUN wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add -
RUN echo deb http://pkg.jenkins-ci.org/debian-stable binary/ >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y jenkins
+RUN rm -rf /var/lib/apt/lists/*
RUN usermod -m -d /var/jenkins_home jenkins
RUN mkdir -p /var/jenkins_home && chown -R jenkins /var/jenkins_home
ADD init.groovy /tmp/WEB-INF/init.groovy
@@ -16,7 +17,7 @@
RUN chmod +x /usr/local/bin/jenkins.sh
USER jenkins
-# VOLUME /var/jenkins_home - bind this in via -v if you want to make this persistent.
+VOLUME /var/jenkins_home
ENV JENKINS_HOME /var/jenkins_home
# define url prefix for running jenkins behind Apache (https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache)