moustafa1-1 commited on
Commit
c7e76c3
·
verified ·
1 Parent(s): 82a5961

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -14
Dockerfile CHANGED
@@ -1,24 +1,12 @@
1
  FROM ghcr.io/coqui-ai/tts
2
 
3
- # Set the working directory inside the container (optional, but good practice)
4
  WORKDIR /app
5
-
6
- # Copy your web folder into the container
7
  COPY web /app/web
8
-
9
- # Copy your server script into the container
10
  COPY local_server_new.py /app/
11
-
12
- # If your local_server_new.py has its own requirements, you can copy and install them
13
  COPY requirements.txt /app/
 
14
  RUN pip install -r /app/requirements.txt --no-cache-dir
 
15
 
16
- # Expose the port your web server will listen on (assuming it's port 80, the standard for Spaces)
17
  EXPOSE 80
18
-
19
- # Command to run your local server script
20
- CMD ["python", "/app/local_server_new.py", "--host", "0.0.0.0", "--port", "80"]
21
-
22
- # You might need to adjust the CMD based on how your script is run.
23
- # For example, if you use uvicorn:
24
  CMD ["uvicorn", "local_server_new:app", "--host", "0.0.0.0", "--port", "80"]
 
1
  FROM ghcr.io/coqui-ai/tts
2
 
 
3
  WORKDIR /app
 
 
4
  COPY web /app/web
 
 
5
  COPY local_server_new.py /app/
 
 
6
  COPY requirements.txt /app/
7
+
8
  RUN pip install -r /app/requirements.txt --no-cache-dir
9
+ RUN pip install --force-reinstall TTS -vvv # Force re-install with verbose output
10
 
 
11
  EXPOSE 80
 
 
 
 
 
 
12
  CMD ["uvicorn", "local_server_new:app", "--host", "0.0.0.0", "--port", "80"]