Skip to content

Commit 2e936ae

Browse files
committed
Update pip version in images
(cherry picked from commit 4d53683)
1 parent 8e5797e commit 2e936ae

File tree

8 files changed

+11
-3
lines changed

8 files changed

+11
-3
lines changed

images/downloader/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN apt-get update -qq && apt-get install -y -q \
99
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
1010
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
1111
python3.6 get-pip.py && \
12+
pip install --upgrade pip && \
1213
rm -rf /root/.cache/pip*
1314

1415
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt

images/manager/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ WORKDIR /root
44

55
ENV PATH /root/.local/bin:$PATH
66

7-
RUN pip install awscli --upgrade --user && \
7+
RUN pip install --upgrade pip && \
8+
pip install awscli --upgrade --user && \
89
rm -rf /root/.cache/pip*
910

1011
RUN apk add --no-cache bash curl gettext jq openssl

images/onnx-serve-gpu/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update -qq && apt-get install -y -q \
1919
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
2020
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
2121
python3.6 get-pip.py && \
22+
pip install --upgrade pip && \
2223
rm -rf /root/.cache/pip*
2324

2425
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"

images/onnx-serve/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update -qq && apt-get install -y -q \
1919
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
2020
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
2121
python3.6 get-pip.py && \
22+
pip install --upgrade pip && \
2223
rm -rf /root/.cache/pip*
2324

2425
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"

images/predictor-serve-gpu/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN apt-get update -qq && apt-get install -y -q \
1717
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
1818
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
1919
python3.6 get-pip.py && \
20+
pip install --upgrade pip && \
2021
rm -rf /root/.cache/pip*
2122

2223
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"

images/predictor-serve/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN apt-get update -qq && apt-get install -y -q \
1717
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
1818
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
1919
python3.6 get-pip.py && \
20+
pip install --upgrade pip && \
2021
rm -rf /root/.cache/pip*
2122

2223
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"

images/test/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM python:3.6
33
ENV PYTHONPATH="/src:${PYTHONPATH}"
44

55
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt
6-
RUN pip install -r /src/cortex/lib/requirements.txt && \
6+
RUN pip install --upgrade pip && \
7+
pip install -r /src/cortex/lib/requirements.txt && \
78
pip install pytest mock && \
89
rm -rf /root/.cache/pip*
910

images/tf-api/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ RUN apt-get update -qq && apt-get install -y -q \
1818

1919
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt
2020
COPY pkg/workloads/cortex/tf_api/requirements.txt /src/cortex/tf_api/requirements.txt
21-
RUN pip install -r /src/cortex/lib/requirements.txt && \
21+
RUN pip install --upgrade pip && \
22+
pip install -r /src/cortex/lib/requirements.txt && \
2223
pip install -r /src/cortex/tf_api/requirements.txt && \
2324
rm -rf /root/.cache/pip*
2425

0 commit comments

Comments
 (0)