Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker] : use --no-cache-dir flag to pip in dockerfiles to save space #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions es-curator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM alpine:3.8.5

RUN apk --no-cache add python py-setuptools py-pip gcc libffi py-cffi python-dev libffi-dev py-openssl musl-dev linux-headers openssl-dev libssl1.0 && \
pip install elasticsearch-curator==5.6.0 && \
pip install boto3==1.9.59 && \
pip install requests-aws4auth==0.9 && \
pip install cryptography==2.1.3 && \
pip install --no-cache-dir elasticsearch-curator==5.6.0 && \
pip install --no-cache-dir boto3==1.9.59 && \
pip install --no-cache-dir requests-aws4auth==0.9 && \
pip install --no-cache-dir cryptography==2.1.3 && \
apk del py-pip gcc python-dev libffi-dev musl-dev linux-headers openssl-dev && \
sed -i '/import sys/a urllib3.contrib.pyopenssl.inject_into_urllib3()' /usr/bin/curator && \
sed -i '/import sys/a import urllib3.contrib.pyopenssl' /usr/bin/curator && \
Expand Down