File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
ARG VENV_PATH=/prod_venv
2
2
3
+ # # Builder
3
4
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS builder
4
5
5
6
# Install Python and dependencies
6
7
RUN microdnf install -y --setopt=ubi-8-appstream-rpms.module_hotfixes=1 --disablerepo=* \
7
- --enablerepo=ubi-8-baseos-rpms --enablerepo=ubi-8-appstream-rpms python39 python39 -devel \
8
+ --enablerepo=ubi-8-baseos-rpms --enablerepo=ubi-8-appstream-rpms python3.11 python3.11 -devel \
8
9
gcc libffi-devel openssl-devel krb5-workstation krb5-libs && microdnf clean all
9
10
10
11
# Install Poetry
@@ -27,6 +28,7 @@ RUN cd kserve && poetry install --no-interaction --no-cache --extras "storage"
27
28
28
29
RUN pip install --no-cache-dir krbcontext==0.10 hdfs~=2.6.0 requests-kerberos==0.14.0
29
30
31
+ # # Runtime
30
32
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS prod
31
33
32
34
COPY third_party third_party
@@ -37,7 +39,7 @@ ENV VIRTUAL_ENV=${VENV_PATH}
37
39
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
38
40
39
41
RUN microdnf install -y --setopt=ubi-8-appstream-rpms.module_hotfixes=1 --disablerepo=* \
40
- --enablerepo=ubi-8-baseos-rpms --enablerepo=ubi-8-appstream-rpms shadow-utils python39 python39 -devel && \
42
+ --enablerepo=ubi-8-baseos-rpms --enablerepo=ubi-8-appstream-rpms shadow-utils python3.11 python3.11 -devel && \
41
43
microdnf clean all
42
44
RUN useradd kserve -m -u 1000 -d /home/kserve
43
45
You can’t perform that action at this time.
0 commit comments