Skip to content

Commit

Permalink
gpt-sovits: Run as normal user (opea-project#839)
Browse files Browse the repository at this point in the history
Make gpt-sovits to run as normal user as all other opea container
images.

Signed-off-by: Lianhao Lu <[email protected]>
  • Loading branch information
lianhao authored Nov 1, 2024
1 parent 74df6bb commit 6dbb0a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions comps/tts/gpt-sovits/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ RUN mv pretrained_models/* GPT-SoVITS/GPT_SoVITS/pretrained_models/ && \
python -m nltk.downloader averaged_perceptron_tagger_eng cmudict

RUN mv GPT-SoVITS /home/user/
RUN mv /root/nltk_data /home/user/
RUN chown -R user /home/user/

# USER user
USER user
# ENV LANG=C.UTF-8

WORKDIR /home/user/GPT-SoVITS

RUN wget "https://github.com/intel/intel-extension-for-transformers/raw/refs/heads/main/intel_extension_for_transformers/neural_chat/assets/audio/welcome_cn.wav"

ENTRYPOINT ["python", "api.py", "--default_refer_path", "./welcome_cn.wav", "--default_refer_text", "欢迎使用", "--default_refer_language", "zh"]
ENTRYPOINT ["python", "api.py", "--default_refer_path", "./welcome_cn.wav", "--default_refer_text", "欢迎使用", "--default_refer_language", "zh"]

0 comments on commit 6dbb0a7

Please sign in to comment.