yukee1992 commited on
Commit
41b04a0
·
verified ·
1 Parent(s): faaf9fc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -2,11 +2,15 @@ FROM python:3.9-slim
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
@@ -18,7 +22,9 @@ COPY requirements.txt .
18
  # Install Python dependencies with dependency resolution
19
  RUN pip install --upgrade pip
20
  RUN pip install --no-cache-dir --upgrade setuptools wheel
21
- RUN pip install --no-cache-dir -r requirements.txt || pip install --no-cache-dir fastapi uvicorn pydantic requests torch torchaudio TTS soundfile python-multipart
 
 
22
 
23
  # Copy application code
24
  COPY app.py .
 
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
 
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
30
  COPY app.py .