Parcourir la source

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.
David Wittman il y a 10 ans
Parent
commit
28e14938b7
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      Dockerfile

+ 3 - 1
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"]