Switch to Debian base image with linphone-cli (v3.1.0)
This commit is contained in:
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user