File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " truss"
3
- version = " 0.9.96rc018 "
3
+ version = " 0.9.97rc001 "
4
4
description = " A seamless bridge from model development to model delivery"
5
5
license = " MIT"
6
6
readme = " README.md"
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ RUN $PYTHON_EXECUTABLE -c "import sys; \
13
13
|| { echo "ERROR: Supplied base image does not have {{ min_supported_python_version_in_custom_base_image }} <= python <= {{ max_supported_python_version_in_custom_base_image }}"; exit 1; }
14
14
{% endblock %}
15
15
16
- RUN pip install --upgrade pip --no-cache-dir \
17
- && rm -rf /root/.cache/pip
16
+ # NB(nikhil): Only run `pip` if present in image, certain custom servers don't have it.
17
+ RUN if command -v pip >/dev/null 2>&1 ; then \
18
+ pip install --upgrade pip --no-cache-dir && rm -rf /root/.cache/pip; \
19
+ fi
18
20
19
21
{% block base_image_patch %}
20
22
{% endblock %}
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ RUN $PYTHON_EXECUTABLE -c "import sys; \
9
9
and sys.version_info.minor <= 13 \
10
10
else sys.exit(1)" \
11
11
|| { echo "ERROR: Supplied base image does not have 3.8 <= python <= 3.13" ; exit 1; }
12
- RUN pip install --upgrade pip --no-cache-dir \
13
- && rm -rf /root/.cache/pip
12
+ RUN if command -v pip >/dev/null 2>&1; then \
13
+ pip install --upgrade pip --no-cache-dir && rm -rf /root/.cache/pip; \
14
+ fi
14
15
ENV PYTHONUNBUFFERED="True"
15
16
ENV DEBIAN_FRONTEND="noninteractive"
16
17
RUN apt update && \
You can’t perform that action at this time.
0 commit comments