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.
This commit is contained in:
David Wittman
2016-01-07 13:46:11 -06:00
parent ce0732986f
commit 28e14938b7

View File

@@ -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"]