File size: 767 Bytes
4e64853
 
c3c6d58
4e64853
c3c6d58
 
4e64853
c3c6d58
 
 
 
4e64853
c3c6d58
 
4e64853
 
c3c6d58
4e64853
 
c3c6d58
4e64853
 
c3c6d58
4e64853
 
c3c6d58
4e64853
34eca8f
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
# Use Python 3.10 (Standard for voice AI)
FROM python:3.10-slim

# Set the working directory
WORKDIR /app

# Install system dependencies (ffmpeg is crucial for audio)
RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    git \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements first (to cache dependencies)
COPY requirements.txt packages.txt ./

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the app (The . means "everything in current folder")
COPY . .

# Expose the port Streamlit uses
EXPOSE 8501

# Run the app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]