diff --git a/FaaS/OpenFaaS/template/numpy-mp/Dockerfile b/FaaS/OpenFaaS/template/numpy-mp/Dockerfile index 0f14cb43..06c17bf7 100644 --- a/FaaS/OpenFaaS/template/numpy-mp/Dockerfile +++ b/FaaS/OpenFaaS/template/numpy-mp/Dockerfile @@ -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 diff --git a/FaaS/OpenFaaS/template/python3-clearlinux/Dockerfile b/FaaS/OpenFaaS/template/python3-clearlinux/Dockerfile index 4868f06f..8dc2bc82 100644 --- a/FaaS/OpenFaaS/template/python3-clearlinux/Dockerfile +++ b/FaaS/OpenFaaS/template/python3-clearlinux/Dockerfile @@ -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 diff --git a/openvino/Dockerfile b/openvino/Dockerfile index 2e49d7df..e65b3633 100644 --- a/openvino/Dockerfile +++ b/openvino/Dockerfile @@ -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/ diff --git a/stacks/dlrs/kubeflow/dlrs-seldon/docker/Dockerfile_openvino_base b/stacks/dlrs/kubeflow/dlrs-seldon/docker/Dockerfile_openvino_base index b876bb33..b8bdccba 100644 --- a/stacks/dlrs/kubeflow/dlrs-seldon/docker/Dockerfile_openvino_base +++ b/stacks/dlrs/kubeflow/dlrs-seldon/docker/Dockerfile_openvino_base @@ -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 \