File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ RUN python -m pip install --upgrade pip \
12
12
13
13
WORKDIR /workspace
14
14
15
- RUN pip install tensorrt==10.13.2.6 && \
16
- export TRT_PATH=$(python -c "import tensorrt; import os; print(os.path.dirname(tensorrt.__file__))" ) && \
17
- export LD_LIBRARY_PATH="$TRT_PATH/lib:/usr/include:${LD_LIBRARY_PATH}" && \
18
- export PATH="$TRT_PATH/bin:${PATH}"
15
+ RUN pip install tensorrt==10.13.2.6
16
+ ENV TRT_PATH=/usr/local/lib/python3.12/dist-packages/tensorrt
17
+ ENV CUDNN_LIB_DIR=/usr/local/lib/python3.12/dist-packages/nvidia/cudnn/lib
18
+ ENV LD_LIBRARY_PATH="${CUDNN_LIB_DIR}:${TRT_PATH}/lib:/usr/include:${LD_LIBRARY_PATH}"
19
+ ENV PATH="${TRT_PATH}/bin:${PATH}"
19
20
20
21
# Copy application code and install requirements
21
22
COPY modelopt modelopt/modelopt
You can’t perform that action at this time.
0 commit comments