32 lines
598 B
Docker
32 lines
598 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Install system dependencies
|
|
RUN apk add --no-cache \
|
|
python3 \
|
|
py3-pip \
|
|
ffmpeg \
|
|
gcc \
|
|
musl-dev \
|
|
python3-dev \
|
|
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 gcc musl-dev python3-dev
|
|
|
|
# Copy application files
|
|
COPY run.sh .
|
|
COPY sip_service.py .
|
|
COPY services.yaml .
|
|
|
|
RUN chmod +x /app/run.sh
|
|
|
|
CMD [ "/app/run.sh" ]
|