fix: Resolve protobuf dependency conflict for pyannote.audio 4.x

- Update protobuf from <5.0.0 to >=5.0.0 (required by opentelemetry-proto)
- Update streamlit minimum version to >=1.30.0 (protobuf 5.x compatible)
- Update regular Dockerfile to match GPU dockerfile structure
- Install PyTorch CPU version in regular Dockerfile for consistency
This commit is contained in:
Your Name
2026-01-05 11:30:56 -05:00
parent 4dd3c7600e
commit efee0b0abe
2 changed files with 11 additions and 7 deletions

View File

@ -15,12 +15,14 @@ RUN apt-get update && apt-get install -y \
# Copy requirements first for better Docker layer caching
COPY requirements.txt .
# Install Python dependencies with pinned versions
RUN pip install --no-cache-dir -r requirements.txt
# Upgrade pip and install build tools
RUN pip install --upgrade pip setuptools wheel
# Optional: Install CUDA-specific PyTorch if GPU support needed
# Uncomment and modify for your CUDA version:
# RUN pip install --force-reinstall torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchaudio==2.1.0+cu118 --index-url https://download.pytorch.org/whl/cu118
# Install PyTorch CPU version first (for non-GPU builds)
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
# Install remaining Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .