File size: 1,031 Bytes
f32a529
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM gcr.io/ekstepspeechrecognition/text_to_speech_open_api_dependency:2.1.7


ARG DEBIAN_FRONTEND=noninteractive
EXPOSE 5000
RUN mkdir /opt/text_to_speech_open_api/
ENV base_path=/opt/text_to_speech_open_api/
ENV models_base_path=/opt/text_to_speech_open_api/deployed_models/
ENV model_logs_base_path=/opt/text_to_speech_open_api/deployed_models/logs/
ENV translit_model_base_path=/opt/text_to_speech_open_api/vakyansh-tts/src/glow_tts/tts_infer/
RUN echo "export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/lib" >> ~/.bashrc
RUN cp -R /opt/api_dependencies/vakyansh-tts /opt/text_to_speech_open_api/
RUN cp -R /opt/api_dependencies/vakyansh-tts/tts_infer /opt/text_to_speech_open_api/vakyansh-tts/src/glow_tts/
WORKDIR /opt/text_to_speech_open_api/vakyansh-tts/src/glow_tts/
COPY src /opt/text_to_speech_open_api/vakyansh-tts/src/glow_tts/src
COPY ./server.py /opt/text_to_speech_open_api/vakyansh-tts/src/glow_tts/
CMD ["python3","/opt/text_to_speech_open_api/vakyansh-tts/src/glow_tts/server.py"]