Switch to Debian base image with linphone-cli (v3.1.0)

This commit is contained in:
2026-02-08 16:03:40 +01:00
parent f35a83761c
commit 303f01ddc7
5 changed files with 73 additions and 163 deletions

View File

@@ -1,23 +1,21 @@
ARG BUILD_FROM
FROM $BUILD_FROM
FROM debian:bookworm-slim
# Install system dependencies including Linphone
RUN apk add --no-cache \
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
py3-pip \
python3-pip \
python3-flask \
python3-requests \
ffmpeg \
linphone \
git
linphone-cli \
&& rm -rf /var/lib/apt/lists/*
# 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
RUN pip3 install --break-system-packages -r requirements.txt || pip3 install -r requirements.txt
# Copy application files
COPY run.sh .