File size: 561 Bytes
01eccaa
 
 
 
d0acae4
01eccaa
 
 
 
 
 
 
 
 
1db7f70
01eccaa
d0acae4
01eccaa
 
4bb57aa
 
d0acae4
01eccaa
 
 
 
4bb57aa
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
# Base Image
FROM python:3.9-slim

# Set Working Directory
WORKDIR /app

# Install System Dependencies
RUN apt-get update && apt-get install -y \
    libportaudio2 \
    libportaudio-dev \
    libportaudiocpp0 \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*


# Copy Application Files
COPY . /app

# Install Python Dependencies
RUN pip install --no-cache-dir pip -U && \
    pip install --no-cache-dir -r requirements.txt

# Expose Port (Optional)
EXPOSE 8000

# Run the Application
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]