summaryrefslogtreecommitdiffstats
path: root/docker/apt_cacher/Dockerfile
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-01-22 12:18:48 +0100
committerTails developers <amnesia@boum.org>2015-01-22 12:18:48 +0100
commit39a75bf297a9d0f3c7424bbebfb93b12c72cd4cd (patch)
tree00ea2e4d0bf364cddb51b14145832e41ab9c3013 /docker/apt_cacher/Dockerfile
parentc168004832a1f821b424e5270f9e8d88defda4b2 (diff)
WIP for using apt-cacher-ng with our Docker-based builder.feature/7530-docker-with-apt-cacher-ng
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