瀏覽代碼

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 10 年之前
父節點
當前提交
28e14938b7
共有 1 個文件被更改,包括 3 次插入1 次删除
  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"]