yukee1992 commited on
Commit
89a41da
·
verified ·
1 Parent(s): a10029a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -2,15 +2,11 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies including build tools
6
  RUN apt-get update && apt-get install -y \
7
  curl \
8
  ffmpeg \
9
  libsndfile1 \
10
- build-essential \
11
- cmake \
12
- gcc \
13
- g++ \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Create necessary directories
@@ -19,11 +15,14 @@ RUN mkdir -p /tmp/voices /tmp/output
19
  # Copy requirements first for better caching
20
  COPY requirements.txt .
21
 
22
- # Install Python dependencies with dependency resolution
23
  RUN pip install --upgrade pip
24
  RUN pip install --no-cache-dir --upgrade setuptools wheel
25
 
26
- # Install requirements with specific versions to avoid conflicts
 
 
 
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
29
  # Copy application code
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  curl \
8
  ffmpeg \
9
  libsndfile1 \
 
 
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Create necessary directories
 
15
  # Copy requirements first for better caching
16
  COPY requirements.txt .
17
 
18
+ # Install Python dependencies
19
  RUN pip install --upgrade pip
20
  RUN pip install --no-cache-dir --upgrade setuptools wheel
21
 
22
+ # Install CPU-only PyTorch for better compatibility
23
+ RUN pip install --no-cache-dir torch==2.1.0+cpu torchaudio==2.1.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
24
+
25
+ # Install other requirements
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
  # Copy application code