From c2d97248aa1815e92b14953265c168ca00879101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Nordstr=C3=B8m=20Carlsen?= Date: Wed, 12 Nov 2014 15:12:52 +0100 Subject: [PATCH] Added recommended settings - Build from a specific version to make builds reproducible, and clean up after apt-get --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ef23086..ff895f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # # Version 0.9 -FROM phusion/baseimage:latest +FROM phusion/baseimage:0.9.15 MAINTAINER Kristian Haugene VOLUME /data @@ -48,3 +48,6 @@ ADD transmission/periodicUpdates.sh /etc/transmission-daemon/periodicUpdates.sh # Expose port and run. Use baseimage-docker's init system EXPOSE 9091 CMD ["/sbin/my_init"] + +# Clean up APT when done. +RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*