zhengr commited on
Commit
a647f63
·
verified ·
1 Parent(s): 0f836df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -13
Dockerfile CHANGED
@@ -1,21 +1,14 @@
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"]
 
1
+ FROM python:3.9
2
 
 
 
 
 
 
 
 
 
3
  RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
  WORKDIR /app
8
 
9
+ COPY --chown=user ./requirements.txt requirements.txt
 
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
+ COPY --chown=user . /app
 
13
  #CMD ["fastapi", "dev", "examples/api/main.py", "--host", "0.0.0.0", "--port", "7860"]
14
  CMD ["python", "examples/web/webui.py", "--server_name", "0.0.0.0", "--server_port", "7860"]