From 28e14938b789644acd98e4a60d9b2771d6cfc1c1 Mon Sep 17 00:00:00 2001 From: David Wittman Date: Thu, 7 Jan 2016 13:46:11 -0600 Subject: [PATCH] Remove pip and apk cache in Dockerfile Reduce the footprint of this repository even further (from ~50MiB to ~43MiB) by removing pip and the apk cache at the end of the build. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3ce0af5..de1aeae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM alpine:3.2 RUN apk --update add python py-pip && \ - pip install elasticsearch-curator==3.4.0 + pip install elasticsearch-curator==3.4.0 && \ + apk del py-pip && \ + rm -rf /var/cache/apk/* ENTRYPOINT ["/usr/bin/curator"]