Skip to content

Commit 0f345de

Browse files
authored
[RHOAIENG-19883] - Update python to 3.11 on storate-initializer component (#508)
chore: Update storage-initializer python version to 3.11+
1 parent c3e71bd commit 0f345de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/storage-initializer.Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
ARG VENV_PATH=/prod_venv
22

3+
## Builder
34
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS builder
45

56
# Install Python and dependencies
67
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 \
89
gcc libffi-devel openssl-devel krb5-workstation krb5-libs && microdnf clean all
910

1011
# Install Poetry
@@ -27,6 +28,7 @@ RUN cd kserve && poetry install --no-interaction --no-cache --extras "storage"
2728

2829
RUN pip install --no-cache-dir krbcontext==0.10 hdfs~=2.6.0 requests-kerberos==0.14.0
2930

31+
## Runtime
3032
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS prod
3133

3234
COPY third_party third_party
@@ -37,7 +39,7 @@ ENV VIRTUAL_ENV=${VENV_PATH}
3739
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3840

3941
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 && \
4143
microdnf clean all
4244
RUN useradd kserve -m -u 1000 -d /home/kserve
4345

0 commit comments

Comments
 (0)