ARG BUILD_FROM FROM $BUILD_FROM # Install system dependencies including Linphone RUN apk add --no-cache \ python3 \ py3-pip \ ffmpeg \ linphone \ git # Set working directory WORKDIR /app # Copy requirements and install Python dependencies COPY requirements.txt . RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt # Remove git after installation to reduce image size RUN apk del git # Copy application files COPY run.sh . COPY sip_service.py . COPY services.yaml . RUN chmod +x /app/run.sh CMD [ "/app/run.sh" ]