GPTfree api commited on
Commit
5c9b535
·
verified ·
1 Parent(s): b0081e9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base image with Python, for example, an official Python image
2
+ FROM python:3.9-slim
3
+
4
+ # Set environment variables (Optional)
5
+ ENV PYTHONUNBUFFERED=1
6
+ ENV LANG C.UTF-8
7
+
8
+ # Install required system dependencies (for Git, and any other build dependencies)
9
+ RUN apt-get update && apt-get install -y \
10
+ git \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Create and set the working directory
14
+ WORKDIR /app
15
+
16
+ # Clone the repository
17
+ RUN git clone https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI
18
+
19
+ # Set the working directory to the cloned repo
20
+ WORKDIR /app/Retrieval-based-Voice-Conversion-WebUI
21
+
22
+ # Install Python dependencies
23
+ RUN pip install --upgrade pip
24
+ RUN pip install -r requirements.txt # Assuming the repo has a requirements.txt
25
+
26
+ # Expose the port that the web UI will use
27
+ EXPOSE 7897
28
+
29
+ # Run the command specified in go-web.bat
30
+ CMD ["runtime/python.exe", "infer-web.py", "--pycmd", "runtime/python.exe", "--port", "7897"]