Dockerfile_triton_client 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved.
  2. # Licensed under the Apache License, Version 2.0 (the "License");
  3. # you may not use this file except in compliance with the License.
  4. # You may obtain a copy of the License at
  5. #
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. #
  8. # Unless required by applicable law or agreed to in writing, software
  9. # distributed under the License is distributed on an "AS IS" BASIS,
  10. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. # See the License for the specific language governing permissions and
  12. # limitations under the License.
  13. FROM nvcr.io/nvidia/tritonserver:20.06-py3-clientsdk AS triton
  14. FROM continuumio/miniconda3
  15. RUN apt-get update && apt-get install -y pbzip2 pv bzip2 cabextract mc iputils-ping wget
  16. WORKDIR /workspace/speech_ai_demo_TTS/
  17. # Copy the perf_client over
  18. COPY --from=triton /workspace/install/ /workspace/install/
  19. ENV LD_LIBRARY_PATH /workspace/install/lib:${LD_LIBRARY_PATH}
  20. # set up env variables
  21. ENV PATH="$PATH:/opt/conda/bin"
  22. RUN cd /workspace/speech_ai_demo_TTS/
  23. # jupyter lab extensions
  24. RUN conda install -c conda-forge jupyterlab ipywidgets nodejs python-sounddevice librosa unidecode inflect
  25. RUN pip install /workspace/install/python/triton*.whl
  26. # Copy the python wheel and install with pip
  27. COPY --from=triton /workspace/install/python/triton*.whl /tmp/
  28. RUN pip install /tmp/triton*.whl && rm /tmp/triton*.whl
  29. RUN cd /workspace/speech_ai_demo_TTS/
  30. COPY ./notebooks/triton/ .
  31. RUN mkdir /workspace/speech_ai_demo_TTS/tacotron2/
  32. COPY ./tacotron2/text /workspace/speech_ai_demo_TTS/tacotron2/text
  33. RUN chmod a+x /workspace/speech_ai_demo_TTS/run_this.sh
  34. RUN conda install nodejs
  35. RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager