Files
ha-sip-notifier/sip-notifier/Dockerfile

28 lines
493 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
# 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
# Copy application files
COPY run.sh .
COPY sip_service.py .
COPY services.yaml .
RUN chmod +x /app/run.sh
CMD [ "/app/run.sh" ]