File size: 728 Bytes
efa429e cae7e1d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM python:3.9
#RUN apt update
# RUN apt install git
# RUN apt install ffmpeg portaudio19-dev libgtk-3-dev python3-wxgtk4.0 -y
RUN git clone https://github.com/zhengr/ChatTTS.git /app
# The two following lines are requirements for the Dev Mode to be functional
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
RUN useradd -m -u 1000 user
WORKDIR /app
COPY --chown=user . /app
# COPY --chown=user requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN chmod -R 777 /app
#CMD ["fastapi", "dev", "examples/api/main.py", "--host", "0.0.0.0", "--port", "7860"]
CMD ["python", "examples/web/webui.py", "--server_name", "0.0.0.0", "--server_port", "7860"] |