Explorar o código

Merge pull request #4 from DavidWittman/remove-apk-cache

Remove pip and apk cache in Dockerfile
Ian Babrou %!s(int64=10) %!d(string=hai) anos
pai
achega
bc55081d44
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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"]