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

use --no-cache-dir flag to pip in dockerfiles to save space #395

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion FaaS/OpenFaaS/template/numpy-mp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WORKDIR /home/numpy-func
COPY function /home/numpy-func/function
WORKDIR /home/numpy-func/function
# pip install python packages if required
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# install bundles if required
# PLEASE input bundle line by line
Expand Down
2 changes: 1 addition & 1 deletion FaaS/OpenFaaS/template/python3-clearlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN touch ./function/__init__.py
WORKDIR /root/function/
# pip install python packages if required
COPY function/requirements.txt .
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# install bundles if required
# PLEASE input bundle line by line
Expand Down
2 changes: 1 addition & 1 deletion openvino/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN for m in $(cat /app/models.txt); do \

# Pre-install some python libs for serivce to use
COPY ./requirements.txt /app
RUN pip3 install -r /app/requirements.txt
RUN pip3 install --no-cache-dir -r /app/requirements.txt

COPY ./set_model_path.sh /app
COPY docker-entrypoint.sh /usr/local/bin/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM clearlinux/stacks-dlrs-mkl:v0.4.0

RUN pip install jaeger-client==3.13.0 seldon-core tornado>=5.0\
&& pip install --upgrade setuptools \
RUN pip install --no-cache-dir jaeger-client==3.13.0 seldon-core tornado>=5.0\
&& pip install --no-cache-dir --upgrade setuptools \
&& sed -i "s/max_workers=10/max_workers=1/g" /usr/lib/python3.7/site-packages/seldon_core/wrapper.py

RUN git clone https://github.com/SeldonIO/seldon-core.git /opt/seldon-core \
Expand Down