xjsc0 commited on
Commit
5734922
Β·
1 Parent(s): abeee5c
Files changed (1) hide show
  1. Dockerfile +42 -0
Dockerfile ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ============================================================
2
+ # YingMusic-Singer β€” Local Docker (NVIDIA GPU)
3
+ # ============================================================
4
+ # Build: docker build -t yingmusic-singer .
5
+ # Run: docker run --gpus all -p 7860:7860 yingmusic-singer
6
+ # ============================================================
7
+
8
+ FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
9
+
10
+ ENV DEBIAN_FRONTEND=noninteractive \
11
+ PYTHONUNBUFFERED=1 \
12
+ GRADIO_SERVER_NAME=0.0.0.0 \
13
+ GRADIO_SERVER_PORT=7860
14
+
15
+ # ── System deps + espeak-ng ──────────────────────────────────
16
+ RUN apt-get update && apt-get install -y --no-install-recommends \
17
+ python3.10 python3.10-venv python3-pip \
18
+ espeak-ng libespeak-ng1 \
19
+ ffmpeg libsndfile1 \
20
+ git wget curl \
21
+ && ln -sf /usr/bin/python3.10 /usr/bin/python \
22
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
23
+
24
+ # ── Upgrade pip ──────────────────────────────────────────────
25
+ RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel
26
+
27
+ # ── Python dependencies ──────────────────────────────────────
28
+ WORKDIR /app
29
+
30
+ # Copy requirements first for better layer caching
31
+ COPY requirements*.txt ./
32
+ RUN pip install uv
33
+ RUN uv pip install --no-cache-dir --system -r requirements.txt
34
+
35
+ # ── Application code ─────────────────────────────────────────
36
+ COPY . .
37
+
38
+ RUN python initialization.py --task infer
39
+
40
+ EXPOSE 7860
41
+
42
+ CMD ["python", "app.py"]