@@ -125,6 +125,22 @@ RUN --mount=type=cache,target=/root/.cache/ccache \
125
125
CMAKE_BUILD_TYPE=Release \
126
126
python3 setup.py bdist_wheel --dist-dir=dist
127
127
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
+
128
144
## Release #####################################################################
129
145
FROM python-install AS vllm-openai
130
146
@@ -143,7 +159,12 @@ COPY extras/custom_cache_manager.py /opt/vllm/lib/python3.11/site-packages/custo
143
159
# install vllm wheel first, so that torch etc will be installed
144
160
RUN --mount=type=bind,from=build,src=/workspace/dist,target=/workspace/dist \
145
161
--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
147
168
148
169
ENV HF_HUB_OFFLINE=1 \
149
170
PORT=8000 \
@@ -168,7 +189,7 @@ FROM vllm-openai as vllm-grpc-adapter
168
189
USER root
169
190
170
191
RUN --mount=type=cache,target=/root/.cache/pip \
171
- pip install vllm-tgis-adapter
192
+ pip install vllm-tgis-adapter==0.1.3
172
193
173
194
ENV GRPC_PORT=8033
174
195
USER 2000
0 commit comments