Seqath commited on
Commit
47a1876
Β·
verified Β·
1 Parent(s): c12d48b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -25
Dockerfile CHANGED
@@ -1,25 +1,26 @@
1
- docker run -d -p 5000:5000 --gpus=all r8.im/zsxkib/realistic-voice-cloning@sha256:a0076ea13a704d9fa6d02535bc8951d3b141c84dc95d2d3f2f5016eabfcb8d94
2
- curl -s -X POST \
3
- -H "Content-Type: application/json" \
4
- -d $'{
5
- "input": {
6
- "protect": 0.33,
7
- "rvc_model": "Squidward",
8
- "index_rate": 0.5,
9
- "reverb_size": 0.15,
10
- "pitch_change": "no-change",
11
- "rms_mix_rate": 0.25,
12
- "filter_radius": 3,
13
- "output_format": "mp3",
14
- "reverb_damping": 0.7,
15
- "reverb_dryness": 0.8,
16
- "reverb_wetness": 0.2,
17
- "crepe_hop_length": 128,
18
- "pitch_change_all": 0,
19
- "main_vocals_volume_change": 0,
20
- "pitch_detection_algorithm": "rmvpe",
21
- "instrumental_volume_change": 0,
22
- "backup_vocals_volume_change": 0
23
- }
24
- }' \
25
- http://localhost:5000/predictions
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && \
9
+ apt-get install -y \
10
+ libsndfile1-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy the current directory contents into the container
14
+ COPY . /app
15
+
16
+ # Install any needed packages specified in requirements.txt
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Make port 80 available to the world outside this container
20
+ EXPOSE 80
21
+
22
+ # Define environment variable
23
+ ENV NAME RVCVoiceCloningApp
24
+
25
+ # Run the application
26
+ CMD ["python", "app.py"]