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"]