summaryrefslogtreecommitdiffstats
path: root/docker/apt_cacher/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/apt_cacher/Dockerfile')
-rw-r--r--docker/apt_cacher/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/apt_cacher/Dockerfile b/docker/apt_cacher/Dockerfile
new file mode 100644
index 0000000..edf3798
--- /dev/null
+++ b/docker/apt_cacher/Dockerfile
@@ -0,0 +1,18 @@
+FROM debian:wheezy
+MAINTAINER tails@boum.org
+
+VOLUME ["/var/cache/apt-cacher-ng"]
+
+COPY provision/assets/apt/sources.list /etc/apt/sources.list
+COPY provision/assets/apt/preferences /etc/apt/preferences.d/tails
+
+RUN apt-get update && \
+ apt-get upgrade --assume-yes && \
+ apt-get install --assume-yes --no-install-recommends \
+ apt-cacher-ng/wheezy-backports
+
+COPY provision/assets/config/acng.conf /etc/apt-cacher-ng/acng.conf
+
+EXPOSE 3142
+
+CMD /usr/sbin/apt-cacher-ng ForeGround=1 CacheDir=/var/cache/apt-cacher-ng