Rajhuggingface4253 commited on
Commit
b481cd1
·
verified ·
1 Parent(s): 5e22c69

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -17,10 +17,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
17
  # Copy requirements FIRST for better caching
18
  COPY requirements.txt .
19
 
20
- # Install PyTorch CPU first, then other dependencies
21
  RUN pip install --no-cache-dir \
22
- torch==2.8.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cpu \
23
- && pip install --no-cache-dir -r requirements.txt
 
 
 
 
24
 
25
  # Clone neutts-air
26
  RUN git clone --depth 1 https://github.com/neuphonic/neutts-air.git
 
17
  # Copy requirements FIRST for better caching
18
  COPY requirements.txt .
19
 
20
+ # Install CPU PyTorch FIRST using the correct method
21
  RUN pip install --no-cache-dir \
22
+ torch==2.8.0+cpu \
23
+ torchaudio==2.8.0+cpu \
24
+ --index-url https://download.pytorch.org/whl/cpu
25
+
26
+ # Now install the rest of the dependencies
27
+ RUN pip install --no-cache-dir -r requirements.txt
28
 
29
  # Clone neutts-air
30
  RUN git clone --depth 1 https://github.com/neuphonic/neutts-air.git