anshharora commited on
Commit
92c86dd
·
verified ·
1 Parent(s): 3129482

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +16 -6
dockerfile CHANGED
@@ -1,18 +1,28 @@
1
- FROM python:3.9-slim
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
 
 
 
 
 
 
 
 
5
  portaudio19-dev \
6
  python3-pyaudio \
7
- ffmpeg \
8
- && rm -rf /var/lib/apt/lists/*
 
9
 
10
  # Set working directory
11
  WORKDIR /app
12
 
13
  # Copy requirements and install Python dependencies
14
  COPY requirements.txt .
15
- RUN pip install -r requirements.txt
 
16
 
17
  # Copy application code
18
  COPY . .
@@ -21,4 +31,4 @@ COPY . .
21
  EXPOSE 7860
22
 
23
  # Command to run the application
24
- CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
 
3
+ # Install system dependencies including portaudio
4
  RUN apt-get update && apt-get install -y \
5
+ git \
6
+ git-lfs \
7
+ ffmpeg \
8
+ libsm6 \
9
+ libxext6 \
10
+ cmake \
11
+ rsync \
12
+ libgl1-mesa-glx \
13
  portaudio19-dev \
14
  python3-pyaudio \
15
+ build-essential \
16
+ && rm -rf /var/lib/apt/lists/* \
17
+ && git lfs install
18
 
19
  # Set working directory
20
  WORKDIR /app
21
 
22
  # Copy requirements and install Python dependencies
23
  COPY requirements.txt .
24
+ RUN pip install --no-cache-dir pip -U && \
25
+ pip install --no-cache-dir -r requirements.txt
26
 
27
  # Copy application code
28
  COPY . .
 
31
  EXPOSE 7860
32
 
33
  # Command to run the application
34
+ CMD ["python", "app.py"]