trysem commited on
Commit
c46fdf9
·
verified ·
1 Parent(s): f7416ab

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +35 -0
Dockerfile ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # 1. Install system dependencies required for audio processing and C-compilation
6
+ RUN apt-get update && apt-get install -y \
7
+ git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 build-essential curl \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # 2. Upgrade pip and install core build tools globally
11
+ RUN pip install --no-cache-dir pip -U
12
+ RUN pip install --no-cache-dir Cython wheel setuptools
13
+
14
+ # 3. FORCE youtokentome to build without isolation so it can see Cython
15
+ RUN pip install --no-cache-dir --no-build-isolation youtokentome
16
+
17
+ # 4. Install PyTorch (CPU version by default to keep container size manageable,
18
+ # change to CUDA if you have GPU hardware enabled in your Space)
19
+ RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
20
+
21
+ # 5. Install NeMo 1.23.0 (This version avoids the OmegaConf dict/list mismatch)
22
+ RUN pip install --no-cache-dir nemo_toolkit[asr]==1.23.0
23
+
24
+ # 6. Install App Dependencies
25
+ COPY requirements.txt /app/
26
+ RUN pip install --no-cache-dir -r requirements.txt
27
+
28
+ # 7. Copy your app code into the container
29
+ COPY . /app/
30
+
31
+ # 8. Expose the port Gradio runs on
32
+ EXPOSE 7860
33
+
34
+ # 9. Start the application
35
+ CMD ["python", "app.py"]