File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,17 @@ COPY --from=torch-tensorrt-builder /workspace/torch_tensorrt/src/dist/ .
106106
107107RUN cp /opt/torch_tensorrt/docker/WORKSPACE.docker /opt/torch_tensorrt/WORKSPACE
108108RUN pip install -r /opt/torch_tensorrt/py/requirements.txt
109+ # Install all dependency wheel files and user-specified TensorRT
110+ RUN pip install *.whl
109111RUN pip install tensorrt==${TENSORRT_VERSION}.*
110- RUN pip install *.whl && rm -fr /workspace/torch_tensorrt/dist/* *.whl
112+
113+ # Add the Torch-TensorRT wheel file to the dist directory and delete all other .whl files
114+ RUN rm -fr /workspace/torch_tensorrt/dist/*
115+ RUN mkdir -p /opt/torch_tensorrt/dist/ && mv torch_tensorrt*.whl /opt/torch_tensorrt/dist/
116+ RUN rm -fr *.whl
117+
118+ # Remove other cache files if present
119+ RUN pip cache purge && rm -rf /opt/torch_tensorrt/.mypy_cache
111120
112121WORKDIR /opt/torch_tensorrt
113122
You can’t perform that action at this time.
0 commit comments