FROM python:3.12-slim RUN apt-get update && \ apt-get install -y --no-install-recommends ffmpeg && \ rm -rf /var/lib/apt/lists/* WORKDIR /app RUN pip install --no-cache-dir \ --extra-index-url https://download.pytorch.org/whl/cpu \ torch==2.11.0+cpu \ torchaudio==2.11.0+cpu RUN pip install --no-cache-dir \ onnxruntime==1.21.0 \ torchcodec \ sentencepiece \ numpy \ soundfile \ gradio \ huggingface_hub COPY app.py . ENV MOSS_MODEL_DIR=/app/models ENV MOSS_OUTPUT_DIR=/tmp/moss_output ENV GRADIO_SERVER_NAME=0.0.0.0 ENV GRADIO_SERVER_PORT=7860 EXPOSE 7860 CMD ["python", "app.py"]