ARG BUILD_FROM FROM $BUILD_FROM # Install system dependencies RUN apk add --no-cache \ python3 \ py3-pip \ py3-pjsua2 \ ffmpeg \ alsa-lib # Set working directory WORKDIR /app # Copy requirements and install Python dependencies COPY requirements.txt . RUN pip3 install --no-cache-dir -r requirements.txt # Copy application files COPY run.sh . COPY sip_service.py . RUN chmod +x /app/run.sh CMD [ "/app/run.sh" ]