Spaces:
Build error
Build error
GPTfree api
commited on
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Use a base image with Python
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
# Set environment variables (Optional)
|
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
git \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
# Upgrade pip to
|
14 |
RUN pip install --upgrade pip
|
15 |
|
16 |
# Create and set the working directory
|
@@ -22,14 +22,14 @@ RUN git clone https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-We
|
|
22 |
# Set the working directory to the cloned repo
|
23 |
WORKDIR /app/Retrieval-based-Voice-Conversion-WebUI
|
24 |
|
25 |
-
#
|
26 |
-
RUN sed -i 's/omegaconf<2.1/omegaconf>=2.0.5,<2.1/' requirements.txt
|
27 |
-
|
28 |
-
# Install fairseq and hydra-core explicitly first (separate installation)
|
29 |
RUN pip install fairseq==0.12.2
|
30 |
RUN pip install hydra-core==1.0.7
|
31 |
|
32 |
-
#
|
|
|
|
|
|
|
33 |
RUN pip install -r requirements.txt
|
34 |
|
35 |
# Expose the port that the web UI will use
|
|
|
1 |
+
# Use a base image with Python
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
# Set environment variables (Optional)
|
|
|
10 |
git \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
+
# Upgrade pip to handle metadata issues
|
14 |
RUN pip install --upgrade pip
|
15 |
|
16 |
# Create and set the working directory
|
|
|
22 |
# Set the working directory to the cloned repo
|
23 |
WORKDIR /app/Retrieval-based-Voice-Conversion-WebUI
|
24 |
|
25 |
+
# Install fairseq and hydra-core explicitly first
|
|
|
|
|
|
|
26 |
RUN pip install fairseq==0.12.2
|
27 |
RUN pip install hydra-core==1.0.7
|
28 |
|
29 |
+
# Modify requirements.txt to ensure compatibility for omegaconf
|
30 |
+
RUN sed -i 's/omegaconf<2.1/omegaconf>=2.0.5,<2.1/' requirements.txt
|
31 |
+
|
32 |
+
# Install remaining dependencies
|
33 |
RUN pip install -r requirements.txt
|
34 |
|
35 |
# Expose the port that the web UI will use
|