moustafa1-1 commited on
Commit
b5c85d9
·
verified ·
1 Parent(s): d67e06a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -33,15 +33,11 @@ ENV BLIS_ARCH="generic"
33
  # Try to agree to the Coqui TTS license via environment variable
34
  ENV COQUI_TTS_AGREED=1
35
 
36
- # Create a virtual environment
37
- RUN python3 -m venv venv
38
- RUN . /app/venv/bin/activate
39
-
40
- # Install Coqui TTS requirements
41
- RUN pip install -r requirements.txt --timeout=300
42
-
43
- # Explicitly install the TTS package itself in editable mode
44
- RUN pip install -e . --timeout=300
45
 
46
  # Change working directory back to /app
47
  WORKDIR /app
@@ -70,7 +66,9 @@ COPY local_server_new.py /app/
70
 
71
  # Install your other dependencies (fastapi, uvicorn, bangla, etc.)
72
  COPY requirements.txt /app/
73
- RUN . /app/venv/bin/activate && pip install -r /app/requirements.txt --no-cache-dir --timeout=300
 
 
74
 
75
  # Create start.sh script
76
  RUN echo "#!/bin/bash" > start.sh && \
 
33
  # Try to agree to the Coqui TTS license via environment variable
34
  ENV COQUI_TTS_AGREED=1
35
 
36
+ # Create and activate the virtual environment, then install TTS requirements and the TTS package
37
+ RUN python3 -m venv venv && \
38
+ . venv/bin/activate && \
39
+ pip install -r requirements.txt --timeout=300 && \
40
+ pip install -e . --timeout=300
 
 
 
 
41
 
42
  # Change working directory back to /app
43
  WORKDIR /app
 
66
 
67
  # Install your other dependencies (fastapi, uvicorn, bangla, etc.)
68
  COPY requirements.txt /app/
69
+ RUN python3 -m venv /app/venv && \
70
+ . /app/venv/bin/activate && \
71
+ pip install -r /app/requirements.txt --no-cache-dir --timeout=300
72
 
73
  # Create start.sh script
74
  RUN echo "#!/bin/bash" > start.sh && \