Files
2025-09-18 21:56:25 +08:00

21 lines
747 B
Plaintext

FROM maca-c500-pytorch:2.33.0.6-torch2.6-py310-ubuntu24.04-amd64
WORKDIR /workspace
ENV CONDA_DIR=/opt/conda
ENV PATH=${CONDA_DIR}/bin:${PATH}
RUN set -eux; \
chmod 1777 /tmp; \
mkdir -p /var/tmp/apt-tmp && chmod 1777 /var/tmp/apt-tmp; \
apt-get -o Dir::Temp::=/var/tmp/apt-tmp update && \
DEBIAN_FRONTEND=noninteractive apt-get -o Dir::Temp::=/var/tmp/apt-tmp install -y --no-install-recommends espeak-ng && \
rm -rf /var/lib/apt/lists/* /var/tmp/apt-tmp
COPY requirements_matcha.txt constraints_matcha.txt matcha_server.py launch_matcha.sh /workspace/
RUN pip install -r requirements_matcha.txt -c constraints_matcha.txt
RUN pip install matcha-tts -c constraints_matcha.txt
ENTRYPOINT ["/bin/bash", "launch_matcha.sh"]