Viraj2307 commited on
Commit
31af302
·
verified ·
1 Parent(s): 9f598ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,14 +1,18 @@
1
  # Start from an official Python base image
2
  FROM python:3.10-slim
3
 
4
- # Install system dependencies for PortAudio
5
  RUN apt-get update && \
6
- apt-get install -y portaudio19-dev && \
7
- apt-get clean
 
 
 
 
8
 
9
- # Install pip dependencies
10
  COPY requirements.txt .
11
- RUN pip install -r requirements.txt
12
 
13
  # Copy the Streamlit app files into the container
14
  COPY . /app
 
1
  # Start from an official Python base image
2
  FROM python:3.10-slim
3
 
4
+ # Install system dependencies for PortAudio and other necessary tools
5
  RUN apt-get update && \
6
+ apt-get install -y \
7
+ portaudio19-dev \
8
+ gcc \
9
+ g++ \
10
+ libsndfile1-dev \
11
+ && apt-get clean
12
 
13
+ # Copy requirements.txt and install Python dependencies
14
  COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Copy the Streamlit app files into the container
18
  COPY . /app