python-dotenv>=1.0.0
aiohttp>=3.8.5
uuid>=1.30
dataclasses>=0.6
typing>=3.7.4.3
# ML Framework dependencies
torch>=2.0.0
torchvision>=0.15.0
torchaudio>=2.0.0
# Audio/Video processing dependencies
av>=14.0.0
ffmpeg-python>=0.2.0
librosa>=0.11.0
soundfile>=0.13.0
numba>=0.51.0
livekit-agents[turn-detector]==1.2.5
# livekit-plugins-noise-cancellation>=0.2.5 # Disabled - requires LiveKit Cloud
livekit-plugins-openai==1.2.5
livekit-plugins-anthropic==1.2.5
livekit-plugins-groq==1.2.5
livekit-plugins-azure==1.2.5
livekit-plugins-google==1.2.5
livekit-plugins-deepgram==1.2.5
livekit-plugins-elevenlabs==1.2.5
livekit-plugins-sarvam==1.2.5
livekit-plugins-silero==1.2.5
mcp
requests>=2.0.0
httpx>=0.24.0 # For MCP server validation
plivo>=4.0.0 # For Plivo HTTP Transfer API support
twilio>=8.0.0 # For SMS messaging and phone number management
pytz>=2023.3 # For timezone validation in
Cal.com tools
pyaudio
pydub>=0.25.1
I have all these packages in my requirements file
and here is the docker image :
# Use the official Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system packages required to build PyAudio and other packages
# and to run pydub (needs ffmpeg)
RUN apt-get update && apt-get install -y \
gcc \
portaudio19-dev \
libffi-dev \
build-essential \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy only the files needed to install dependencies
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project
COPY . .
# Pre-download all plugin dependency files and models
# This ensures all Hugging Face models and other dependencies are cached
# in the Docker image before runtime, preventing the LocalEntryNotFoundError
RUN python main.py download-files
# Pre-download all professional thinking sounds
# This ensures all audio files are cached in the Docker image
# preventing any download delays during phone calls
RUN python scripts/audio_manager_cli.py download
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Set default command to run the app
CMD ["python", "main.py", "start"]
it is going around 7 GB
we use self hosted livkit server an dazure bucket for storing audio
which of them i can remove that are nto needed ?
or used internally by any of the packages of livkit