File size: 646 Bytes
232af4e
 
2dded51
232af4e
2dded51
 
 
 
 
 
 
 
232af4e
2dded51
232af4e
 
2dded51
 
 
 
 
 
 
 
 
 
232af4e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.10-slim

# Install system dependencies including portaudio
RUN apt-get update && \
    apt-get install -y \
        build-essential \
        portaudio19-dev \
        libportaudio2 \
        libportaudiocpp0 \
        ffmpeg \
        git \
        && apt-get clean && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the code
COPY . .

# Expose the port for Gradio (optional for local dev)
EXPOSE 7860

# Run the app
CMD ["python", "app.py"]