Gayatri kancharla commited on
Commit
0cbc3f4
·
verified ·
1 Parent(s): 8bb82b9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile CHANGED
@@ -1,10 +1,22 @@
1
  FROM python:3.10-slim
2
 
 
 
 
 
 
 
3
  WORKDIR /app
4
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
 
10
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies for librosa and transformers
4
+ RUN apt-get update && apt-get install -y \
5
+ libsndfile1 \
6
+ gcc \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /app
10
 
11
+ # Upgrade pip to ensure compatibility
12
+ RUN pip install --no-cache-dir --upgrade pip
13
+
14
+ # Copy and install requirements
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Copy application files
19
  COPY . .
20
 
21
+ # Run the application
22
  CMD ["python", "app.py"]