zhengr commited on
Commit
cae7e1d
·
verified ·
1 Parent(s): c8649ed

Create Dockerfile

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