浏览代码

bump alpine version, switch to --no-cache

You can use the --no-cache option to apk, then you don't have to delete the package cache afterwards.

All the best,

Benjamin
Benjamin 8 年之前
父节点
当前提交
94edc4b080
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      Dockerfile

+ 3 - 4
Dockerfile

@@ -1,10 +1,9 @@
-FROM alpine:3.4
+FROM alpine:3.6
 
-RUN apk --update add python py-setuptools py-pip && \
+RUN apk --no-cache add python py-setuptools py-pip && \
     pip install elasticsearch-curator==5.2.0 && \
     pip install requests-aws4auth && \
-    apk del py-pip && \
-    rm -rf /var/cache/apk/*
+    apk del py-pip 
 
 USER nobody:nobody
 ENTRYPOINT ["/usr/bin/curator"]