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 \
1212
1313WORKDIR /workspace
1414
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}"
1920
2021# Copy application code and install requirements
2122COPY modelopt modelopt/modelopt
You can’t perform that action at this time.
0 commit comments