Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -7
Dockerfile
CHANGED
|
@@ -22,18 +22,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 22 |
|
| 23 |
# Create a virtual environment
|
| 24 |
RUN python3 -m venv venv
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
|
| 27 |
# Set environment variables to force a generic BLIS build using the system's C compiler
|
| 28 |
ENV BLIS_ARCH="generic"
|
| 29 |
ENV CC="cc"
|
| 30 |
|
| 31 |
-
# Copy the requirements.txt file
|
| 32 |
-
COPY requirements.txt /app/
|
| 33 |
-
|
| 34 |
-
# Install all dependencies, including TTS, from the requirements.txt
|
| 35 |
-
RUN pip install --no-cache-dir -r /app/requirements.txt --timeout=300
|
| 36 |
-
|
| 37 |
# Create the model directory
|
| 38 |
RUN mkdir -p /app/models/xtts_v2
|
| 39 |
|
|
|
|
| 22 |
|
| 23 |
# Create a virtual environment
|
| 24 |
RUN python3 -m venv venv
|
| 25 |
+
|
| 26 |
+
# Activate the virtual environment and then install requirements
|
| 27 |
+
RUN . /app/venv/bin/activate && pip install --no-cache-dir -r /app/requirements.txt --timeout=300
|
| 28 |
|
| 29 |
# Set environment variables to force a generic BLIS build using the system's C compiler
|
| 30 |
ENV BLIS_ARCH="generic"
|
| 31 |
ENV CC="cc"
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Create the model directory
|
| 34 |
RUN mkdir -p /app/models/xtts_v2
|
| 35 |
|