mimo_audio_chat / Dockerfile
yanyihan-xiaomi's picture
Add Dockerfile and implement WebRTC functionality
178417b
FROM python:3.12-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
libc++1 \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
ENV HOME=/home/user
ENV PATH="$HOME/.local/bin:$PATH"
USER user
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN python3 -m pip install --no-cache-dir --upgrade pip \
&& python3 -m pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
CMD ["python3.12", "-u", "mimo_webrtc.py"]