FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 \ PIP_NO_CACHE_DIR=1 \ HF_HOME=/home/user/.cache/huggingface \ MODELSCOPE_CACHE=/home/user/.cache/modelscope \ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_VOXCPM=0.0.0 WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ ffmpeg \ git \ libsndfile1 \ && rm -rf /var/lib/apt/lists/* COPY pyproject.toml README.md LICENSE ./ COPY src ./src COPY assets ./assets COPY app.py ./ RUN pip install --upgrade pip \ && pip install torch==2.11.0+cpu torchaudio==2.11.0+cpu --index-url https://download.pytorch.org/whl/cpu \ && pip install -e . EXPOSE 7860 CMD ["python", "app.py", "--port", "7860", "--device", "cpu"]