Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 7fd7fba

Browse files
Merge pull request #67 from opendatahub-io/main
sync release with main
2 parents 7cc6a9b + 1f39759 commit 7fd7fba

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

Dockerfile.ubi

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,22 @@ RUN --mount=type=cache,target=/root/.cache/ccache \
125125
CMAKE_BUILD_TYPE=Release \
126126
python3 setup.py bdist_wheel --dist-dir=dist
127127

128+
#################### libsodium Build IMAGE ####################
129+
FROM base as libsodium-builder
130+
131+
RUN microdnf install -y gcc gzip \
132+
&& microdnf clean all
133+
134+
WORKDIR /usr/src/libsodium
135+
136+
ARG LIBSODIUM_VERSION=1.0.20
137+
RUN curl -LO https://github.com/jedisct1/libsodium/releases/download/${LIBSODIUM_VERSION}-RELEASE/libsodium-${LIBSODIUM_VERSION}.tar.gz \
138+
&& tar -xzvf libsodium*.tar.gz \
139+
&& rm -f libsodium*.tar.gz \
140+
&& mv libsodium*/* ./
141+
142+
RUN ./configure --prefix="/usr/" && make && make check
143+
128144
## Release #####################################################################
129145
FROM python-install AS vllm-openai
130146

@@ -143,7 +159,12 @@ COPY extras/custom_cache_manager.py /opt/vllm/lib/python3.11/site-packages/custo
143159
# install vllm wheel first, so that torch etc will be installed
144160
RUN --mount=type=bind,from=build,src=/workspace/dist,target=/workspace/dist \
145161
--mount=type=cache,target=/root/.cache/pip \
146-
pip install dist/*.whl --verbose
162+
pip install $(echo dist/*.whl)'[tensorizer]' --verbose
163+
164+
# Install libsodium for Tensorizer encryption
165+
RUN --mount=type=bind,from=libsodium-builder,src=/usr/src/libsodium,target=/usr/src/libsodium \
166+
cd /usr/src/libsodium \
167+
&& make install
147168

148169
ENV HF_HUB_OFFLINE=1 \
149170
PORT=8000 \
@@ -168,7 +189,7 @@ FROM vllm-openai as vllm-grpc-adapter
168189
USER root
169190

170191
RUN --mount=type=cache,target=/root/.cache/pip \
171-
pip install vllm-tgis-adapter
192+
pip install vllm-tgis-adapter==0.1.2
172193

173194
ENV GRPC_PORT=8033
174195
USER 2000

0 commit comments

Comments
 (0)