File tree Expand file tree Collapse file tree 3 files changed +31
-21
lines changed
TensorFlow/Classification/ConvNets Expand file tree Collapse file tree 3 files changed +31
-21
lines changed Original file line number Diff line number Diff line change 11ARG FROM_IMAGE_NAME=nvcr.io/nvidia/tensorflow:20.12-tf1-py3
2- ARG TRITON_CLIENT_IMAGE_NAME=nvcr.io/nvidia/tritonserver:20.12-py3-sdk
3- FROM ${TRITON_CLIENT_IMAGE_NAME} as triton-client
42FROM ${FROM_IMAGE_NAME}
53
6- # Install perf_client required library
7- RUN apt-get update && \
8- apt-get install -y libb64-dev libb64-0d && \
9- apt-get clean && \
10- rm -rf /var/lib/apt/lists/*
11-
12- # Install Triton Client PythonAPI and copy Perf Client
13- COPY --from=triton-client /workspace/install/ /workspace/install/
14- ENV LD_LIBRARY_PATH /workspace/install/lib:${LD_LIBRARY_PATH}
15- RUN find /workspace/install/python/ -iname triton*manylinux*.whl -exec pip install {}[all] \;
16-
17- # Setup environmnent variables to access Triton Client lib and bin
18- ENV PATH /workspace/install/bin:${PATH}
19-
204ENV PYTHONPATH /workspace/rn50v15_tf
215WORKDIR /workspace/rn50v15_tf
226
23- RUN pip uninstall -y typing
24-
257ADD requirements.txt .
26- ADD triton/requirements.txt triton/requirements.txt
278RUN pip install -r requirements.txt
28- RUN pip install -r triton/requirements.txt
299
3010ADD . .
Original file line number Diff line number Diff line change 1+ ARG FROM_IMAGE_NAME=nvcr.io/nvidia/tensorflow:20.12-tf1-py3
2+ ARG TRITON_CLIENT_IMAGE_NAME=nvcr.io/nvidia/tritonserver:20.12-py3-sdk
3+ FROM ${TRITON_CLIENT_IMAGE_NAME} as triton-client
4+ FROM ${FROM_IMAGE_NAME}
5+
6+ # Install perf_client required library
7+ RUN apt-get update && \
8+ apt-get install -y libb64-dev libb64-0d && \
9+ apt-get clean && \
10+ rm -rf /var/lib/apt/lists/*
11+
12+ # Install Triton Client PythonAPI and copy Perf Client
13+ COPY --from=triton-client /workspace/install/ /workspace/install/
14+ ENV LD_LIBRARY_PATH /workspace/install/lib:${LD_LIBRARY_PATH}
15+ RUN find /workspace/install/python/ -iname triton*manylinux*.whl -exec pip install {}[all] \;
16+
17+ # Setup environmnent variables to access Triton Client lib and bin
18+ ENV PATH /workspace/install/bin:${PATH}
19+
20+ ENV PYTHONPATH /workspace/rn50v15_tf
21+ WORKDIR /workspace/rn50v15_tf
22+
23+ RUN pip uninstall -y typing
24+
25+ ADD requirements.txt .
26+ ADD triton/requirements.txt triton/requirements.txt
27+ RUN pip install -r requirements.txt
28+ RUN pip install -r triton/requirements.txt
29+
30+ ADD . .
Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515
16- docker build -t resnet50 . -f Dockerfile
16+ docker build -t resnet50 . -f Dockerfile.inference
You can’t perform that action at this time.
0 commit comments